Neo4j超慢边插入

时间:2018-02-20 13:10:57

标签: java neo4j

这么简单但是......我正在关注https://neo4j.com/docs/developer-manual/current/cypher/clauses/create/#create-create-a-relationship-between-two-nodes但是在On Neo4j上,以下Cypher查询需要超过120秒:

MATCH (from:PubmedDocumentNode), (to:PubmedAuthorNode) 
WHERE from.PMID = 26408320 
AND to.Author_Name = "Bando|Mika|M|" 
CREATE (from)-[:AUTHOR {labels:[],label:[3.0],Id:0}]->(to) 

还有索引:

Indexes 
 ON :PubmedAuthorNode(Author_Name) ONLINE 
 ON :PubmedDocumentNode(PMID) ONLINE 

No constraints

所以..为什么??

编辑:没有创建部分的相同查询立即运行。

0 个答案:

没有答案