Thanks.
If timeout is the main issue here, you can try and work in smaller transactions batches(10,100,1000,10000,100000) to control memory usages, which will make the commits on a smaller batch and might assist.
Have you tried: apoc.periodic.iterate...
Hi Shoval,
I'm Gal and i lead all Neo4j Engineering in Israel.
Feel free to contact me for further assistance and cooperation: Gal.Bello@Neo4j.com
Good luck!