Skip to content

Commit

Permalink
DETACH DELETE in TTLLifeCycle.java
Browse files Browse the repository at this point in the history
Fixes #3607
  • Loading branch information
jexp authored Jun 1, 2023
1 parent 17bace9 commit aeabf6f
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 aeabf6f

Please sign in to comment.