Skip to content

Commit da2af2c

Browse files
Update modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc
Co-authored-by: Jens Pryce-Åklundh <[email protected]>
1 parent 95fc6da commit da2af2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,8 +1069,8 @@ The result shows that all transactions are now successful:
10691069
10701070
Deadlock resolution and transaction retries are time-consuming, making deadlock avoidance a preferred strategy.
10711071
This can be achieved by dividing a task into two distinct subqueries: a data-independent subquery run in parallel with maximum concurrency, and a data-dependent subquery executed serially (i.e. one transaction at a time) to avoid deadlocks.
1072-
In this example nodes and properties are created in a concurrent subquery, while the relationships are then created in a serial subquery.
1073-
This way we can benefit from the performance of concurrent transactions while avoiding the deadlocks that slow down the overall performance.
1072+
In the below example, nodes and properties are created in a concurrent subquery, while the relationships connecting those nodes are created in a serial subquery.
1073+
This method benefits from the performance of concurrent transactions while avoiding deadlocks.
10741074
10751075
.Query splitting up the transactional subquery in a data-independent concurrent subquery followed by a data-dependent serial subquery to avoid deadlocks
10761076
// tag::subqueries_in_transactions_deadlock_example_2[]

0 commit comments

Comments
 (0)