Comparison of Relational Databases and Graph Databases

前端 未结 7 1344
野的像风
野的像风 2020-11-30 18:22

Can someone explain to me the advantages and disadvantages for a relation database such as MySQL compared to a graph database such as Neo4j?

In SQL you have multipl

7条回答
  •  既然无缘
    2020-11-30 18:40

    While the relational model can easily represent the data that is contained in a graph model, we face two significant problems in practice:

    1. SQL lacks the syntax to easily perform graph traversal, especially traversals where the depth is unknown or unbounded. For instance, using SQL to determine friends of your friends is easy enough, but it is hard to solve the “degrees of separation” problem.
    2. Performance degrades quickly as we traverse the graph. Each level of traversal adds significantly to query response time.

    Reference: Next Generation Databases

提交回复
热议问题