Neo4j在Cypher查询运行中仅使用一个核心 [英] Neo4j use only one core in Cypher query running

查看:126
本文介绍了Neo4j在Cypher查询运行中仅使用一个核心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在UI中运行Cypher查询时,服务器中只有一个核心正在运行,查询卡住或响应速度很慢.

我使用Neo4j 3.0.7社区.

有人知道我可以使用所有内核进行调整吗?

解决方案

单个Cypher查询仅限于单个线程.请参阅 tweet blog/contributor/stefan-armbruster/"rel =" nofollow noreferrer> Stefan Armbruster :

(大多数情况下)密码语句是一个事务,因此只能在一个线程上进行.

如果查询很慢,则可以使用各种技巧对其进行优化:博客文章是一个很好的起点.

When i run a Cypher query in UI, only one core in server is going up and the query gets stuck or responds very slow.

I use Neo4j 3.0.7 Community.

Someone have idea what i can tune for using all cores?

解决方案

A single Cypher query is limited to a single thread. See this tweet from late 2015 by Stefan Armbruster:

A cypher statement is (in most cases) one transaction and therefore only on one thread.

If your query is slow, you can use various tricks for optimizing it: this blog post is a good starting point.

这篇关于Neo4j在Cypher查询运行中仅使用一个核心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆