How graph databases store data to a persistent storage?
图数据库如何将数据存储到持久存储?
PKV
PKV
2 个解决方案
#1
3
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!
举一个例子,看看Neo4j的NeoStore类,以及它引用的其他类型的商店。似乎Neo4j使用多个文件,每个文件包含固定长度的记录;一个用于节点,一个用于节点属性的键,一个用于节点属性的值等。每个节点中的记录包含索引以引用其他中的记录。这对我来说似乎过于复杂,但对于编写它的人来说,这显然是一个好主意!
#2
1
To know more about how OrientDB stores graphs look at: http://code.google.com/p/orient/wiki/Concepts#Storage
要了解有关OrientDB如何存储图表的更多信息,请访问:http://code.google.com/p/orient/wiki/Concepts#Storage
#1
3
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!
举一个例子,看看Neo4j的NeoStore类,以及它引用的其他类型的商店。似乎Neo4j使用多个文件,每个文件包含固定长度的记录;一个用于节点,一个用于节点属性的键,一个用于节点属性的值等。每个节点中的记录包含索引以引用其他中的记录。这对我来说似乎过于复杂,但对于编写它的人来说,这显然是一个好主意!
#2
1
To know more about how OrientDB stores graphs look at: http://code.google.com/p/orient/wiki/Concepts#Storage
要了解有关OrientDB如何存储图表的更多信息,请访问:http://code.google.com/p/orient/wiki/Concepts#Storage