Orientdb as a document-graph database

你。 提交于 2019-12-08 00:27:23

问题


I am using Neo4j and trying to find out the advantages of Orient as document-graph db over Neo4j.

How does it work in Orientdb to have features of a document database in a graphbdb? is the database in both mode (graph and document) using the same datasource? if so, then is it possible to edit data in documentdb and show it as a graphdb?

I worked with Orientdb and it seems that you can have your database either as graphdb or as documentdb, so I don't get the point of having both databases features in one db. I mean you can choose to have a pure documentdb or pure graphdb, but can't be some mixture of both, so it can be a graphdb like Neo4j or a documentdb like Mongodb. I need to know if I'm right or not?


回答1:


Every time you work with OrientDB Graph API, you can always accessing to the underlying Document Database API, so you can mix usage of both. For example you can embed a document inside a Vertex...




回答2:


The difference between document and graph is just a matter of modelling relation ships. Here you can see a detailed presentation. In short: if you use the document model you have direct relations between documents (vertexes), This means you can not store properties on the edge. If you use the graph model your relationships between documents (vertex) are going over a third edge-document where you store your edge-properties on. For me the big benefit of OrientDB is its ability to model documents using inheritance (for vertex and edges as well).



来源:https://stackoverflow.com/questions/20825656/orientdb-as-a-document-graph-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!