I am running a query in cypher shell to form relationship between 10 million nodes.The query is
CALL apoc.periodic.iterate(
"MATCH (a:HeaderRecord), (b:FormationRecord)
WHERE a.WellID = b.WellID
CREATE (a)-[rel:HAS_FORMATION]->(b)
RETURN rel",
{batchSize:5000, parallel:true, iterateList:true}
)
The query is running for past one hour but nothing is happening.How can I make is query verbose and fast.