I plan to use periodic.iterate to perform DETACH and DELETE.
source: Large Delete Transaction Best Practices in Neo4j - Knowledge Base
Based on the description, the periodic will keep executing till the #of records=0.
How will it behave if new nodes are being added at the same time.
My usecase is: I need to detach and delete nodes of particular type. This is a network setup where initially lot of nodes will be added and slowly the addition of new nodes will slow down.
I plan to use scanner thread to call periodic.iterate every 5 mins so that eventually I have nodes of types=x detached and deleted. Is this a good way?