The invention relates to a memory
graph database implementation method and device,
electronic equipment and a storage medium, and belongs to the technical field of graph databases. The method comprises the steps that a vertex table is created, and vertexes corresponding to similar entities are stored in the same vertex table; edge blocks are established, the outgoing edge and the incoming edge of the same vertex are stored in different edge blocks, and the edges stored in the edge blocks correspond to the same vertex; creating a vertex
label table and an edge
label table, storing attribute field information of a single vertex table in the single vertex
label table, and storing attribute information of an edge in the edge label table; for each vertex table, establishing a
primary key mapping between a vertex attribute
primary key and a vertex identifier; and establishing label mapping between the label table names corresponding to the various entities and the identifiers of the label tables. Therefore, the
graph database is not limited by disk I / O and does not need to be managed by a buffer
pool, large-range traversal can be reduced, the number of access times of the
database can be reduced, and the retrieval efficiency and success rate of social networks, recommendation systems and knowledge graphs are greatly improved.