Neo4j Cypher count query performance optimizaztion
问题 I have the following Neo4j Cypher count() query: MATCH (dg:DecisionGroup)-[:CONTAINS]->(childD:Decision) WHERE dg.id = 1 MATCH (childD)-[relationshipValueRel4:HAS_VALUE_ON]-(filterCharacteristic4:Characteristic) WHERE filterCharacteristic4.id = 4 WITH relationshipValueRel4, childD, dg WHERE (ANY (id IN [5, 25, 106] WHERE id IN relationshipValueRel4.optionIds )) WITH childD, dg RETURN count(childD) as total Right now this query works pretty slow: Cypher version: CYPHER 3.3, planner: COST,