2016-07-07 52 views
-2

我有以下问题,即我需要解决的高效查询,和灵活的性能扩展:什么数据库可用于以下场景?

节点:

node_id1 
node_id2 
node_id3 
node_id4 
node_id5 

组:

node_id1;node_id2;node_id3 
node_id4;node_id5 

node_id1 < node_id2 < node_id3 => node_id1;node_id2;node_id3(唯一的组ID从最小到最大)

性能:

node_id1: color:red 
node_id2: color:blue 
node_id3: color:blue 

结果:

node_id1;node_id2;node_id3: color:red:1,blue:2 size:3 ... etc 

关系类型:需要速度优化

node_id -IS_IN -> group 

操作:

get groups by group properties, ex: color restrictions, min/max size, etc 
get all groups for given node_id  
update group properties when contained node_id property gets modified (can this be implemented in a smart way without too many lines of code?) 

,你会推荐什么样的数据库? mysql,neo4j,arangodb,mongodb,其他?

回答

0

首先,它们不是数据库,而是关系数据库管理系统(RDBMS)。它们是两个完全不同的东西,因为数据库是数据库就是数据库,但是RDBMS的彼此非常不同。因此,任何RDBMS都可以为你工作,因为它们都是基本相同的。我个人更喜欢使用SQL Server,Oracle或MySQL作为我的RDBMS,但它们都很好。

+1

他列出的系统并非都是关系型的。 – philipxy

+0

有几个我不熟悉的情况下,我会推荐使用RDBMS。 –

相关问题