You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, deadlock resolution and retrying of transactions takes time, so the best practice is to avoid deadlocks in the first place.
1071
+
This can be done by splitting up the subquery into a data-independent subquery that can be run in parallel with maximum concurrency,
1072
+
and a data-dependent subquery that is run serially to avoid deadlocks.
1073
+
In this example nodes and properties are created in a concurrent subquery, while the relationships are then created in a serial subquery.
1074
+
This way we can benefit from the performance of concurrent transactions while avoiding the deadlocks that slow down the overall performance.
1075
+
1076
+
.Query splitting up the transactional subquery in a data-independent concurrent subquery followed by a data-dependent serial subquery to avoid deadlocks
0 commit comments