apoc.periodic.rock_n_roll_while

Procedure APOC Full Deprecated

apoc.periodic.rock_n_roll_while('some cypher for knowing when to stop', 'some cypher for iteration', 'some cypher as action on each iteration', 10000) YIELD batches, total - run the action statement in batches over the iterator statement’s results in a separate thread. Returns number of batches and total processed rows

Signature

apoc.periodic.rock_n_roll_while(cypherLoop :: STRING?, cypherIterate :: STRING?, cypherAction :: STRING?, batchSize :: INTEGER?) :: (loop :: ANY?, batches :: INTEGER?, total :: INTEGER?)

Input parameters

Name Type Default

cypherLoop

STRING?

null

cypherIterate

STRING?

null

cypherAction

STRING?

null

batchSize

INTEGER?

null

Output parameters

Name Type

loop

ANY?

batches

INTEGER?

total

INTEGER?