Cypher FOREACH MERGE not hitting the index
问题 I've got a following parametrized Cypher query: MERGE (p:Person {pid: {personId}}) ON CREATE SET p.value=rand() MERGE (c:Page {url: {pageUrl}}) ON CREATE SET c.value=rand() MERGE p-[:REL]->c FOREACH (tagValue IN {tags} | MERGE (t:Tag {value:tagValue}) MERGE c-[:hasTag]->t) This is very slow, the profiling shows: EmptyResult | +UpdateGraph(0) | +Eager(0) | +UpdateGraph(1) | +Eager(1) | +UpdateGraph(2) +----------------+------+--------+------------------------------+----------------------------