Skip to content

Commit 25c6646

Browse files
format for 5
1 parent 8a40fd5 commit 25c6646

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ Use the xref:subqueries/subqueries-in-transactions.adoc#status-report[status rep
837837
When a write transaction occurs, Neo4j takes locks to preserve data consistency while updating.
838838
For example, when creating or deleting a relationship, a write lock is taken on both the specific relationship and its connected nodes.
839839

840-
A deadlock happens when two transactions are blocked by each other because they are attempting to concurrently modify a node or a relationship that is locked by the other transaction (for more information about locks and deadlocks in Neo4j, see link:{neo4j-docs-base-uri}/operations-manual/current/database-internals/concurrent-data-access/#_locks[Operations Manual -> Concurrent data access].
840+
A deadlock happens when two transactions are blocked by each other because they are attempting to concurrently modify a node or a relationship that is locked by the other transaction (for more information about locks and deadlocks in Neo4j, see link:{neo4j-docs-base-uri}/operations-manual/current/database-internals/concurrent-data-access/#_locks[Operations Manual -> Concurrent data access]).
841841

842842
A deadlock may occur when using `CALL { ... } IN CONCURRENT TRANSACTIONS` if the transactions for two or more batches try to take the same locks in an order that results in a circular dependency between them.
843843
If so, the impacted transactions are always rolled back, and an error is thrown unless the query is appended with one of the following error options:
@@ -1057,9 +1057,7 @@ The result shows that all transactions are now successful:
10571057
10581058
.Click to see an example of failed transactions being retried without using `ON ERROR RETRY`
10591059
[%collapsible]
1060-
=====
1061-
While failed transactions may be more efficiently retried using a link:{neo4j-docs-base-uri}/create-applications[driver], below is an example how failed transactions can be retried within the same Cypher query without using `ON ERROR RETRY`:
1062-
1060+
====
10631061

10641062
.Query retrying failed transactions
10651063
[source, cypher]
@@ -1078,7 +1076,7 @@ CALL (row) {
10781076
MERGE (m)-[r:RELEASED_IN]->(y)
10791077
} IN 2 CONCURRENT TRANSACTIONS OF 10 ROWS ON ERROR FAIL
10801078
----
1081-
=====
1079+
====
10821080
=====
10831081

10841082
[[restrictions]]

0 commit comments

Comments
 (0)