查询需要更多时间在WHERE上

时间:2017-12-04 08:48:53

标签: performance graph neo4j neo4j-apoc

MATCH (pr:PR)-[:CLOSED_ON]-(cls)  
WHERE  NOT(cls.closedDate = '' )  
RETURN pr

执行时间:588 ms

MATCH (pr:PR)-[:CLOSED_ON]-(cls)  
WHERE  NOT(cls.closedDate = '' ) 
AND apoc.date.parse(cls.closedDate,'s', 'MM/dd/yyyy') >= apoc.date.parse('01/01/2014','s', 'MM/dd/yyyy') 
AND apoc.date.parse(cls.closedDate,'s', 'MM/dd/yyyy') <= apoc.date.parse('06/13/2017','s', 'MM/dd/yyyy') 
RETURN pr

执行时间:2926 ms

pr节点数:35,000

为什么需要花更多时间在哪些声明上?

enter image description here

0 个答案:

没有答案