Skip to content

Commit

Permalink
DETACH DELETE in TTLLifeCycle.java (#3608)
Browse files Browse the repository at this point in the history
Fixes #3607
  • Loading branch information
jexp authored Jun 16, 2023
1 parent f6ac63d commit 9dbac9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extended/src/main/java/apoc/ttl/TTLLifeCycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void expireNodes(long limit) {
);

long nodesDeleted = db.executeTransactionally(
"CALL apoc.periodic.iterate($queryNodes, 'MATCH (n) WHERE id(n) = id DELETE n', {batchSize: $batchSize})",
"CALL apoc.periodic.iterate($queryNodes, 'MATCH (n) WHERE id(n) = id DETACH DELETE n', {batchSize: $batchSize})",
params,
result -> Iterators.single(result.columnAs("total"))
);
Expand Down

0 comments on commit 9dbac9c

Please sign in to comment.