关于亿级关系查询的性能问题
发布于 5 年前 作者 murasakiseifu 2115 次浏览 来自 问答

大家好,现在有一个需求,前端传递List:4000个节点的商编,根据这个4000个商编查询与之相关联的4个关系,并返回JSON格式的1对多集合。 不知道有什么好的实现方式。。mno属性已经配置了模式索引。 match data=(m:Mno)-[]->() where m.mno in [“09123184372”,“016123879”,“01132413243”,“012312357286”] return data; 这种CQL方式会走索引吗? ±------------------±---------------±-----±--------±----------±----------------------±-----------------+ | Operator | Estimated Rows | Rows | DB Hits | Cache H/M | Identifiers | Other | ±------------------±---------------±-----±--------±----------±----------------------±-----------------+ | +ProduceResults | 30 | 11 | 0 | 0/0 | count(data), data | | | ±---------------±-----±--------±----------±----------------------±-----------------+ | +EagerAggregation | 30 | 11 | 0 | 0/0 | count(data), data | data | |±---------------±-----±--------±----------±----------------------±-----------------+ | +Expand(All) | 902 | 11 | 15 | 0/0 | anon[19], anon[24], m | (m)–>(anon[24]) | |±---------------±-----±--------±----------±----------------------±-----------------+ | +NodeIndexSeek | 25 | 4 | 9 | 0/0 | m | :Mno(mno) | ±------------------±---------------±-----±--------±----------±----------------------±-----------------+

回到顶部