Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何跟踪仍在运行的Neo4j查询(经过很长时间!)?_Neo4j - Fatal编程技术网

如何跟踪仍在运行的Neo4j查询(经过很长时间!)?

如何跟踪仍在运行的Neo4j查询(经过很长时间!)?,neo4j,Neo4j,使用neo4j浏览器,我发送了一个6小时后仍在运行的查询:(我想知道它是否真的在工作和做一些事情,或者它已经做了,并且浏览器由于某种原因(比如失去连接)没有更新 (****阅读评论后更新****) 我的问题是: explain LOAD CSV WITH HEADERS FROM "file:/.../userToken.csv" AS csvrow MATCH (u:User) where u.userID = toInt(csvrow.userID) MATCH (u)-[:MADE]-&g

使用neo4j浏览器,我发送了一个6小时后仍在运行的查询:(我想知道它是否真的在工作和做一些事情,或者它已经做了,并且浏览器由于某种原因(比如失去连接)没有更新

(****阅读评论后更新****) 我的问题是:

explain LOAD CSV WITH HEADERS FROM "file:/.../userToken.csv" AS csvrow
MATCH (u:User)
where u.userID = toInt(csvrow.userID)
MATCH (u)-[:MADE]->(twt: Tweet)-[r: CONTAINS]->(tok: Token)
SET r.user_score = toFloat(csvrow.score)
我需要更新:Tweet和:Token节点之间的:CONTAINS关系,并从csv文件中添加一个新属性(user_score)。在:Token(word)、:user(userID)和:Tweet(Tweet id)上有和索引。正如@Tim所建议的,我使用了EXPLAIN并得到了以下警告:

The execution plan for this query contains the Eager operator, which forces all
 dependent data to be materialized in main memory before proceeding.

Using LOAD CSV with a large data set in a query where the execution plan contains 
the Eager operator could potentially consume a lot of memory and is likely to not 
perform well. See the Neo4j Manual entry on the Eager operator for more 
information and hints on how problems could be avoided.

那么您有什么改进的建议吗?

6小时???您的数据库有多大?您运行了什么查询?您是否查询了索引属性?(编辑您的问题以显示此信息可能是一件好事).我问了同样的问题-似乎没有任何监控工具可用于查看数据库中发生了什么。请使用“解释”重新输入查询在前面,它会给你一个它将做什么的图表-这会给你一个它做了多少工作的指示。六个小时???你的数据库有多大?你运行了什么查询?你查询了索引属性吗?(编辑你的问题以显示此信息可能是一件好事).我问了同样的问题-似乎没有任何监控工具可以用来查看数据库中发生了什么。重新输入查询,在前面加上“explain”一词,它会给你一个它将做什么的图表-这会给你一个它做了多少工作的指示。