【发布时间】:2015-04-10 15:09:15
【问题描述】:
我对 Neo4j 中 Cypher 查询的性能有疑问。 情况是:我的图表的每个节点都有一个属性,我想计算具有相同属性的节点数。 所以,我的基本查询是
match (n:NodeLabel)
with n.community as community, n.myid as myid
match (m) where m.community = community
return myid, count(m) as totcommunity
我在属性“社区”上创建了一个索引
create index on :NodeLabel(Community)
但是性能很差:200.000 个节点的图需要很长时间。 如何获得更好的性能?
提前致谢
【问题讨论】:
标签: indexing neo4j cypher database-indexes