Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How graph databases store data to a persistent storage?

How graph databases store data to a persistent storage?

PKV

like image 900
pkvprakash Avatar asked Oct 11 '22 08:10

pkvprakash


2 Answers

I would expect that every implementation of a graph database uses a different approach.

To take one example, look at Neo4j's NeoStore class, and the other kinds of store it refers to. It seems that Neo4j uses multiple files, each containing fixed-length records; one for nodes, one for keys of properties of nodes, one for values of properties of nodes, etc. Records in each contain indexes to refer to records in the others. It seems overcomplicated to me, but it evidently seemed like a good idea to the guys who wrote it!

like image 70
Tom Anderson Avatar answered Oct 21 '22 06:10

Tom Anderson


To know more about how OrientDB stores graphs look at: http://code.google.com/p/orient/wiki/Concepts#Storage

like image 21
Lvca Avatar answered Oct 21 '22 06:10

Lvca