2016-07-07 55 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。 –

相關問題