Skip to content

Commit 3cfdb1b

Browse files
Document ON ERROR RETRY (#1203)
Note: This feature is no longer earmarked for Cypher 25, but will be part of Cypher 5 in the 2025.03 release.
1 parent 9d39c40 commit 3cfdb1b

File tree

2 files changed

+419
-107
lines changed

2 files changed

+419
-107
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,34 @@ RETURN cosh(0.5), coth(0.5), sinh(0.5), tanh(0.5)
309309
For more information, see xref:functions/mathematical-trigonometric.adoc[Mathematical functions - trigonometric].
310310
|===
311311

312+
[[cypher-deprecations-additions-removals-2025.03]]
313+
== Neo4j 2025.03
314+
315+
=== New features
316+
317+
[cols="2", options="header"]
318+
|===
319+
| Feature
320+
| Details
321+
322+
a|
323+
label:functionality[]
324+
label:new[]
325+
[source, cypher, role=noheader]
326+
----
327+
UNWIND range(1, 100) AS i
328+
CALL (i) {
329+
MERGE (u:User {id: i})
330+
ON CREATE SET u.created = timestamp()
331+
} IN TRANSACTIONS ON ERROR RETRY 1 SECOND THEN FAIL
332+
----
333+
334+
| New error handling option for `CALL { ... } IN TRANSACTIONS`: `ON ERROR RETRY`.
335+
This option applies an exponential delay between retries for transaction batches failing due to transient errors, with an optional maximum retry duration, and handles failure based on a specified fallback error mode if the transaction does not succeed within the given time.
336+
For more information, see xref:subqueries/subqueries-in-transactions#on-error-retry[`CALL` subqueries in transactions -> `ON ERROR RETRY`].
337+
338+
|===
339+
312340
[[cypher-deprecations-additions-removals-2025.01]]
313341
== Neo4j 2025.01
314342

0 commit comments

Comments
 (0)