MATCH (a:PARENT), (b:CHILD) WHERE a.id = b.id MERGE (b)-[:PART_OF]->(a)
I am running the above Neo4J query but I run into a memory exception, "the transaction size reached"
I updated the value of db.memory.transaction.max to 2g but I faced the same error when I tried to create a relationship among nodes of 2 labels.
I am using Neo4j 5.17 community edition in a docker container, label A contains around 150K nodes and B contains around 280K nodes.
Can the above relationship creation be done in batches using apoc.periodic.iterate?
My machine has 16GB ram, what value should db.memory.transaction.max be set to for good performance?
You can use the
CALL IN TRANSACTIONS OF x ROWSmethod to commit periodically after the desiredxamount of rows