无论如何在neo4j实例上有多个数据库? [英] Anyway to have multiple databases on a neo4j instance?

查看:492
本文介绍了无论如何在neo4j实例上有多个数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从关系数据库的心态来看,每个neo4j实例只有一个一个图数据库似乎很奇怪.是从根开始做多个子图的想法吗?

Coming from a relational database mindset, it seems odd that one only one one graph db per instance of neo4j. Is the idea that we do multiple subgraphs starting from root ?

谢谢

推荐答案

根"节点的概念正在消失.这样做有很多问题,其中大多数与节点密度有关.

The concept of "root" node is going away. There are many problems with this, most of which revolve around node density.

我相信您的问题的核心在于数据库设计,以及拥有多个图形数据库实例还是一个具有多个子图的实例是否更聪明.

I believe the heart of your question is around database design, and whether it is smarter to have several graph database instances, or one instance with several subgraphs.

这完全取决于您,但是我会采用子图的想法,因为它允许您在同一连接中共享某些数据,如果您这样做,Neo4j实际上不会对性能造成任何影响,分开,那么您最终会遇到的唯一问题是节点/关系的最大大小,但这是一个人为的限制,稍后将被提高.

Really it's up to you, but I would go with the subgraph idea as it allows some of your data to be shared in the same connection, and Neo4j doesn't really any performance penalties if you do this, provided you keep them separated, then the only problem you'll eventually run into is the max size of nodes/relationship, but this is an artificial limit that will be bumped up later.

这篇关于无论如何在neo4j实例上有多个数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆