"CALL apoc.periodic.iterate( 'MATCH (p:Person:UpdateMe) MATCH (a:Account:UpdateMe) WHERE p.id = a.id RETURN p, a',
'MERGE (p)-[:HAS_ACCOUNT]->(a) REMOVE p:UpdateMe, a:UpdateMe', {batchSize: 10000, parallel:false})"
For more information about the apoc.periodic.iterate
procedure, see apoc.periodic.iterate.
Information noteNote: To call the apoc.periodic.iterate procedure, you need
first to move the apoc-{neo4j_version}-core.jar file
from the {neo4j_home}\labs folder to the
{neo4j_home}\plugins folder.