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

时间:2016-05-17 04:26:42

标签: 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]->(twt: Tweet)-[r: CONTAINS]->(tok: Token)
SET r.user_score = toFloat(csvrow.score)

我需要更新:CONTAINS之间的关系:Tweet和:令牌节点,并从csv文件中添加新属性(user_score)。有和索引:令牌(单词),:用户(用户ID)和:鸣叫(tweetID)。正如@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.

那么你有什么建议可以改善吗?

0 个答案:

没有答案