Thanks Michael. I am having trouble with quite a few queries on a fairly small graph (they take anywhere from 1500ms to 13000ms) and they are mostly written in this way:
start c=node:companies(id="5428")
match company<-[:parent_company*0..]-c
with c
match (c)-[:defines_business_process]->bp-[:has_cycle]->cycle-[:cycle_metric]->metric-[:metric_activity]->ma-[:metric_unit]->unit
where cycle.measureDate>={startDate} and cycle.measureDate<={endDate}
with ma, unit, cycle
match (ma)-[:metric_unit]->(unit)<-[:alert_for_unit]-(alert)-[:alert_for_inspection]->(inspection)-[:has_result]->(result)-[:for_inspection_result]-(alert)
where alert.alertDate=cycle.measureDate and result.value={problem} and(inspection)<-[:metric_inspection]-(ma) and alert.fromEntityType=14
return distinct
alert.id as alertId,
unit.id as unitId,
unit.name as unitName
Do you see something that might be the cause for this?
The graph has 8453 nodes, 16329 properties, 27773 relations and the result from this particular query ranges from 5 to 20 rows.
Thanks
Luanne