当我在 UI 中运行 Cypher 查询时,服务器中只有一个核心正在运行并且查询卡住或响应非常慢。
我使用 Neo4j 3.0.7 社区。
有人知道我可以为使用所有内核调整什么吗?
最佳答案
单个 Cypher 查询仅限于单个线程。看到这个 tweet来自 2015 年底 Stefan Armbruster :
A cypher statement is (in most cases) one transaction and therefore only on one thread.
如果你的查询很慢,你可以使用各种技巧来优化它:这个 blog post是一个很好的起点。
关于Neo4j 在 Cypher 查询运行中仅使用一个核心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41364713/