cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Periodic iterate with dynamic database

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?

1 REPLY 1

I wonder whether APOC's TTL functionality might make this easier?