我得到了20 000个苹果。 如何以比这更聪明的方式创建它们? foreach (var a in apples)
{
graphClient.Cypher
.Create("(a:Apple {newApple})")
.WithParam("newApple", a)
.ExecuteWithoutResults();
当我用这个暗号查询 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毫秒返回结果;这是真的很长一段时间。我怎样才能优化