The invention is applied to the technical field of information, and provides a
database implementation method and a
database. The
database implementation method comprises the following steps of: generating table recording structural bodies of a
client table and a root node table by adopting C / C++
programming language; establishing a balanced
binary tree AVL index, and loading all data in a memory; performing interaction with an application by utilizing an
application programming interface API based on the C / C++ language version, so that interaction information is obtained; and, according to the interaction information and the table recording structural bodies, directly operating the data, and returning a
result set. In the embodiment of the invention, due to adoption of the C / C++
programming language, the table recording structural bodies are generated and the corresponding API is provided; therefore, when the database receives the interaction information of the development application based on the C / C++ language, the data can be managed without any conversion; the
processing efficiency is increased; the
AVL tree index is established; therefore, the
data query complexity is reduced; because the
data processing is completed in the memory, limitation of the I / O speed of the traditional database magnetic disk is broken through; and the real-
time response capability of the database
system is improved.