Skip to content

Commit 9ea18a1

Browse files
committed
Add note about transactions
1 parent dc77b4f commit 9ea18a1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

modules/n1ql/pages/n1ql-language-reference/insert.adoc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,11 @@ curl -v -X POST http://localhost:8093/admin/settings -u Administrator:password \
411411
----
412412
endif::flag-devex-rest-api[]
413413

414-
* Use
414+
* When inserting multiple documents, use
415415
ifdef::flag-devex-rest-api[]
416416
the {max-parallelism-srv}[max-parallelism] service-level setting, or
417417
endif::flag-devex-rest-api[]
418-
the {max_parallelism_req}[max_parallelism] request-level parameter
419-
when inserting multiple documents.
418+
the {max_parallelism_req}[max_parallelism] request-level parameter.
420419
* When performing bulk inserts, use prepared statements or multiple values.
421420
* When new documents are inserted, the indexes are updated.
422421
When a large number of documents are inserted, this may affect the performance of the cluster.

modules/n1ql/pages/n1ql-language-reference/transactions.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ These are explained in the sections below.
155155
Note that some Couchbase SDKs provide APIs to support Couchbase transactions.
156156
For further details, refer to {transactions}[Transactions] in the Server documentation.
157157

158+
ifndef::flag-devex-rest-api[]
159+
[NOTE]
160+
Couchbase Transactions are not supported via the Data API (Query Service passthrough).
161+
The Query Service requires that the whole transaction must be executed by a single node, and there is currently no way for the Data API to enforce this.
162+
endif::flag-devex-rest-api[]
163+
158164
=== Couchbase Transactions with the Query Tab
159165

160166
* To execute a transaction containing multiple statements, compose the sequence of statements in the Query editor.

0 commit comments

Comments
 (0)