Skip to content

Commit 0c3d5c7

Browse files
committed
DOC-13306: Add documentation for indexer level scan timeout (#399)
* Replace Defer Index Builds example with link * Replace Indexer Scan Timeout example with link
1 parent e48543b commit 0c3d5c7

File tree

2 files changed

+4
-34
lines changed

2 files changed

+4
-34
lines changed

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

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -440,25 +440,8 @@ In Couchbase Server 7.6.2 and later, you can change the default setting for the
440440

441441
If you change the default setting for `defer_build` to `true`, index creation operates in deferred build mode by default.
442442

443-
To change the default setting for deferred builds, use the REST API to set the `indexer.settings.defer_build` property.
444-
For example,
445-
446-
[source,sh]
447-
----
448-
curl http://$BASEURL:9102/settings -u $USER:$PASSWORD \
449-
-d '{"indexer.settings.defer_build": true}'
450-
----
451-
452-
Use the following command to retrieve the indexer settings:
453-
454-
[source,sh]
455-
----
456-
curl -X GET http://$BASEURL:9102/settings -u $USER:$PASSWORD
457-
----
458-
459-
* `$BASEURL` is the base URL for the API call, for example: `localhost`.
460-
* `$USER` is the username, for example: `Administrator`.
461-
* `$PASSWORD` is the password.
443+
To change the default setting for deferred builds, use the Index Settings REST API to set the `indexer.settings.defer_build` property.
444+
For an example, see xref:index-rest-settings:index.adoc#ex-defer-build[Defer Index Builds by Default].
462445

463446
== Examples
464447

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -380,21 +380,8 @@ If you are inserting multiple documents, the statement aborts at the first error
380380
* Timeouts can affect the completion of an INSERT statement, especially when performing bulk inserts.
381381
Ensure that the timeout is set to a reasonable value that allows the bulk insert operation to complete.
382382
+
383-
To set the indexer timeout, use the REST API to set the `indexer.settings.scan_timeout` property.
384-
For example,
385-
+
386-
[source,sh]
387-
----
388-
curl http://localhost:9102/settings -u Administrator:password \
389-
-d '{"indexer.settings.scan_timeout": 1200}'
390-
----
391-
+
392-
Use the following command to retrieve the indexer settings:
393-
+
394-
[source,sh]
395-
----
396-
curl -X GET http://localhost:9102/settings -u Administrator:password
397-
----
383+
To set the indexer timeout, use the Index Settings REST API to set the `indexer.settings.scan_timeout` property.
384+
For an example, see xref:index-rest-settings:index.adoc#ex-scan-timeout[Set the Indexer Scan Timeout].
398385

399386
* When inserting multiple documents, no cleanup or rollback is done for the already inserted documents if the INSERT operations hits an error.
400387
This means, when you are inserting 10 documents, if the INSERT operation fails when inserting the 6th document, the operator quits and exits.

0 commit comments

Comments
 (0)