From b37941e1fe8afb6a1fb9d8a6e5cfbf2c659847dc Mon Sep 17 00:00:00 2001 From: Henrik Nyman Date: Tue, 10 Jun 2025 13:50:03 +0200 Subject: [PATCH 1/2] Correct note about supported runtime for transaction subqueries --- modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc b/modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc index 6d190c139..2c3184556 100644 --- a/modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc +++ b/modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc @@ -555,7 +555,7 @@ It is particularly suitable for xref:subqueries/subqueries-in-transactions.adoc# [NOTE] -Queries using `ON ERROR RETRY` can currently only use the xref:planning-and-tuning/runtimes/concepts.adoc#runtimes-slotted-runtime[slotted runtime]. +Queries using `CONCURRENT TRANSACTIONS` WITH `ON ERROR RETRY` can currently only use the xref:planning-and-tuning/runtimes/concepts.adoc#runtimes-slotted-runtime[slotted runtime]. .Basic retry with default duration ===== From 9b1072f8dd25af1a6ea9deadb84c384bdbcfb80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Pryce-=C3=85klundh?= <112686610+JPryce-Aklundh@users.noreply.github.com> Date: Wed, 11 Jun 2025 10:40:34 +0200 Subject: [PATCH 2/2] new location --- .../ROOT/pages/subqueries/subqueries-in-transactions.adoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc b/modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc index 2c3184556..5524c4e54 100644 --- a/modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc +++ b/modules/ROOT/pages/subqueries/subqueries-in-transactions.adoc @@ -554,9 +554,6 @@ If the transaction still fails after the maximum duration, the failure is handle It is particularly suitable for xref:subqueries/subqueries-in-transactions.adoc#concurrent-transactions[concurrent transactions], reducing the likelihood of a query failing due to xref:subqueries/subqueries-in-transactions.adoc#deadlocks[deadlocks]. -[NOTE] -Queries using `CONCURRENT TRANSACTIONS` WITH `ON ERROR RETRY` can currently only use the xref:planning-and-tuning/runtimes/concepts.adoc#runtimes-slotted-runtime[slotted runtime]. - .Basic retry with default duration ===== @@ -788,11 +785,13 @@ By default, `CALL { ... } IN TRANSACTIONS` is single-threaded; one CPU core is u However, `CALL` subqueries can also execute batches in parallel by appending `IN [n] CONCURRENT TRANSACTIONS`, where `n` is a concurrency value used to set the maximum number of transactions that can be executed in parallel. This allows `CALL` subqueries to utilize multiple CPU cores simultaneously, which can significantly reduce the time required to execute a large, outer transaction. -[NOTE] The concurrency value is optional. If not specified, a default value based on the amount of available CPU cores will be chosen. If a negative number is specified (which can only be done through a parameter), the concurrency will be the number of available CPU cores reduced by the absolute value of that number. +[NOTE] +Queries using `CONCURRENT TRANSACTIONS` can currently only use the xref:planning-and-tuning/runtimes/concepts.adoc#runtimes-slotted-runtime[slotted runtime]. + .Load a CSV file in concurrent transactions ====