【问题标题】:What database to use for the following scenario?以下场景使用什么数据库?
【发布时间】:2016-11-09 15:18:53
【问题描述】:

为了高效查询和灵活的属性扩展,我需要解决以下问题:

节点:

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、其他?

【问题讨论】:

    标签: database performance database-design model flexibility


    【解决方案1】:

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

    【讨论】:

    • 他列出的系统并不都是关系型的。
    • 一些我不熟悉的,在这种情况下我建议使用 RDBMS。
    猜你喜欢
    • 2014-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多