0

I am trying to make a network similar to Instagram / Facebook principle; i.e. there will be many users and they might be connected to one another in uni-directional way. Something like a graph.

A simple and a naive approach would be to create a directory for each user and have a JSON file listing all the other users who that user follows.

How is the performance of Graph Databases and which one is better for a start( bascically, user friendly installation and not many .conf changes).

Please, do suggest in case there is a better design. Thanks

4

1 回答 1

1

图数据库非常适合存储和遍历实体以及它们之间的关系。从这个意义上说,我认为研究使用图形数据库会很好地利用您的时间。我建议从 TinkerPop 开始:

http://tinkerpop.com

它为许多图形数据库提供程序提供了类似 JDBC 的连接。通过这种方式,您可以通过一个通用界面尝试许多不同的图形数据库,以找到适合您需求的数据库。它还提供了一种通过 Gremlin(一种图形遍历语言)只需很少的设置和配置即可开始的方法。您可以通过 REPL 和 TinkerGraph(一个简单的内存图)在此处了解如何开始使用它:

https://github.com/tinkerpop/gremlin/wiki/Getting-Started

从那里,您将需要查看不同的蓝图支持的图形数据库(例如 Titan、OrientDB、Neo4j 等等),以找到适合您需求的数据库。

于 2013-05-21T12:42:08.633 回答