为了高效查询和灵活的属性扩展,我需要解决以下问题:
节点:
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,其他?