I have a problem,Aggregate calculation is slowly, any Suggest?
thanks.
Query:
match(m:MaBatch)-[r:BATCH]->(d:SumModPanelDefHis) where m.batch='4th' and d.eventTimekey>='20181108060000' and d.eventTimekey<='20181110060000' with d,count(d.panelId) as INPUT_QTY order by d.tftGlassId limit 100 return d.tftGlassId,INPUT_QTY
What is your memory config and page-cache config and what kind of disk are you using?
Can you show the PROFILE instead of the explain? and the output of :schema
what do these return: both the count and the profile.
profile match(m:MaBatch) where m.batch='4th' return count(*)
profile
MATCH (d:SumModPanelDefHis)
where '20181108060000' <= d.eventTimekey <='20181110060000'
return count(*)