0
当我用这个暗号查询我怎样才能优化这个密码查询?
match p=(n)-[r*8]-(n)
where id(n)=548
with p
where ALL(x IN nodes(p)[1..length(p)] WHERE SINGLE(y IN nodes(p)[1..length(p)] WHERE x=y))
return count(p)
花了51922毫秒返回结果;这是真的很长一段时间。我怎样才能优化这个密码查询?任何帮助,将不胜感激。