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
IMPORTANT: If you are using the overloads that take `IDocument`, note that the `IDocument.Expiry` property assumes ms (milli-seconds), and is converted to seconds before being sent to the server.
126
127
All other overloads take a `TimeSpan` or an `uint`, and assume an expiry in seconds
127
128
A time of zero will set the document to never expire
128
-
(a negative number will set expiry to immediate -- creating a xref:7.1@server:learn:buckets-memory-and-storage/storage.adoc#tombstones[tombstone]).
129
+
(a negative number will set expiry to immediate -- creating a xref:{version-server}@server:learn:buckets-memory-and-storage/storage.adoc#tombstones[tombstone]).
129
130
Values above 0ms but below 1000ms are rounded up to one second before being sent to the server -- _if you are using .NET SDK 3.0.4 or later_.
@@ -28,15 +28,15 @@ var result = await cluster.QueryAsync<dynamic>(
28
28
);
29
29
----
30
30
31
-
CAUTION: *When running an application using Prepared Statements through the .NET SDK*-- if you plan to upgrade Couchbase Server from 6.0.x or earlier to 6.5.0 or later, and are running a version of the .NET SDK prior to xref:project-docs:sdk-release-notes.adoc#version-3-0-1-13-may-2020[3.0.1], you will need to xref:7.1@server:install:upgrade-strategy-for-features.adoc#prepared-statements[restart the app or otherwise work around] a change in the Server's behaviour.
31
+
CAUTION: *When running an application using Prepared Statements through the .NET SDK*-- if you plan to upgrade Couchbase Server from 6.0.x or earlier to 6.5.0 or later, and are running a version of the .NET SDK prior to xref:project-docs:sdk-release-notes.adoc#version-3-0-1-13-may-2020[3.0.1], you will need to xref:{version-common}@server:install:upgrade-strategy-for-features.adoc#prepared-statements[restart the app or otherwise work around] a change in the Server's behaviour.
32
32
33
33
34
34
== Indexes
35
35
36
-
The Couchbase query service makes use of xref:7.1@server:learn:services-and-indexes/indexes/indexes.adoc[_indexes_] in order to do its work.
36
+
The Couchbase query service makes use of xref:{version-common}@server:learn:services-and-indexes/indexes/indexes.adoc[_indexes_] in order to do its work.
37
37
Indexes replicate subsets of documents from data nodes over to index nodes,
38
38
allowing specific data (for example, specific document properties) to be retrieved quickly,
39
-
and to distribute load away from data nodes in xref:7.1@server:learn:services-and-indexes/services/services.adoc[MDS] topologies.
39
+
and to distribute load away from data nodes in xref:{version-common}@server:learn:services-and-indexes/services/services.adoc[MDS] topologies.
40
40
41
41
[IMPORTANT]
42
42
In order to make a bucket queryable, it must have at least one index defined.
@@ -81,7 +81,7 @@ Indexes help improve the performance of a query.
81
81
When an index includes the actual values of all the fields specified in the query,
82
82
the index _covers_ the query, and eliminates the need to fetch the actual values from the Data Service.
83
83
An index, in this case, is called a _covering index_, and the query is called a _covered_ query.
84
-
For more information, see xref:7.1@server:n1ql:n1ql-language-reference/covering-indexes.adoc[Covering Indexes].
84
+
For more information, see xref:{version-common}@server:n1ql:n1ql-language-reference/covering-indexes.adoc[Covering Indexes].
85
85
86
86
You can also create and define indexes in the SDK using:
Copy file name to clipboardExpand all lines: modules/hello-world/pages/.webui-cli-access.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ You can access individual documents using the _command line_ and _web console_.
18
18
== Command-Line
19
19
20
20
You can access documents in Couchbase using command line interfaces.
21
-
You can use the `cbc` tool for simple document lookups by their IDs (or _keys_) and the xref:7.1@server:n1ql:n1ql-intro/cbq.adoc[cbq] tool to issue {sqlpp} (formerly N1QL) queries.
21
+
You can use the `cbc` tool for simple document lookups by their IDs (or _keys_) and the xref:{version-server}@server:n1ql:n1ql-intro/cbq.adoc[cbq] tool to issue {sqlpp} (formerly N1QL) queries.
22
22
This section will discuss the installation and usage of the `cbc` tool, and is targeted towards Linux and Mac OS X users.
23
23
24
24
NOTE: You can also use `cbc` on Windows by extracting the archive with libcouchbase.
All simple query types are created in the same manner, some have additional properties, which can be seen in common query type descriptions.
55
-
Couchbase FTS's xref:7.1@server:fts:fts-query-types.adoc[range of query types] enable powerful searching using multiple options, to ensure results are just within the range wanted.
55
+
Couchbase FTS's xref:{version-server}@server:fts:fts-query-types.adoc[range of query types] enable powerful searching using multiple options, to ensure results are just within the range wanted.
56
56
Here is a date range query that looks for dates between 1st January 2021 and 31st January:
IMPORTANT: If you are using the overloads that take `IDocument`, note that the `IDocument.Expiry` property assumes ms (milli-seconds), and is converted to seconds before being sent to the server.
203
203
All other overloads take a `TimeSpan` or an `uint`, and assume an expiry in seconds
204
204
A time of zero will set the document to never expire
205
-
(a negative number will set expiry to immediate -- creating a xref:7.1@server:learn:buckets-memory-and-storage/storage.adoc#tombstones[tombstone]).
205
+
(a negative number will set expiry to immediate -- creating a xref:{version-server}@server:learn:buckets-memory-and-storage/storage.adoc#tombstones[tombstone]).
206
206
Values above 0ms but below 1000ms are rounded up to one second before being sent to the server.
207
207
208
208
209
-
210
209
== Atomic Counters
211
210
212
211
The value of a document can be increased or decreased atomically using `Binary.Increment()` and `Binary.Decrement()`.
It is possible to perform scoped key value operations on named xref:7.1@server:learn:data/scopes-and-collections.adoc[`Collections`] with _Couchbase Server release 7.0_ onwards.
246
+
It is possible to perform scoped key value operations on named xref:{version-server}@server:learn:data/scopes-and-collections.adoc[`Collections`] with _Couchbase Server release 7.0_ onwards.
248
247
249
248
Here is an example showing an upsert in the `users` collection, which lives in the `travel-sample.tenant_agent_00` keyspace:
Copy file name to clipboardExpand all lines: modules/howtos/pages/n1ql-queries-with-sdk.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,7 @@ of .NET, this is not necessary and the option isn't necessary.
195
195
196
196
== Querying at Scope Level
197
197
198
-
From version 3.0.5 of the .NET SDK, it is possible to query off the xref:7.1@server:learn:data/scopes-and-collections.adoc[`Scope` level] _with the Couchbase Server release 7.0_,
198
+
From version 3.0.5 of the .NET SDK, it is possible to query off the xref:{version-server}@server:learn:data/scopes-and-collections.adoc[`Scope` level] _with the Couchbase Server release 7.0_ onwards,
199
199
using the `QueryOptions() {QueryContext = "namespace:bucket:scope:collection"}` method.
200
200
201
201
The following code snippet shows how to run a query to fetch 10 random rows from `travel-sample.inventory` and print the results.
@@ -214,8 +214,8 @@ NOTE: {sqlpp} is not the only query option in Couchbase.
214
214
Be sure to check that xref:concept-docs:data-services.adoc[your use case fits your selection of query service].
215
215
216
216
* For a deeper dive into {sqlpp} from the SDK, refer to our xref:concept-docs:n1ql-query.adoc[{sqlpp} SDK concept doc].
217
-
* The xref:7.1@server:n1ql:n1ql-language-reference/index.adoc[Server doc {sqlpp} intro] introduces a complete guide to the {sqlpp} language, including all of the latest additions.
217
+
* The xref:{version-server}@server:n1ql:n1ql-language-reference/index.adoc[Server doc {sqlpp} intro] introduces a complete guide to the {sqlpp} language, including all of the latest additions.
218
218
* The http://query.pub.couchbase.com/tutorial/#1[{sqlpp} interactive tutorial] is a good introduction to the basics of {sqlpp} use.
219
-
* For scaling up queries, be sure to xref:7.1@server:learn:services-and-indexes/indexes/index-replication.adoc[read up on Indexes].
219
+
* For scaling up queries, be sure to xref:{version-server}@server:learn:services-and-indexes/indexes/index-replication.adoc[read up on Indexes].
220
220
* The Query Service is for operational queries; for analytical workloads, read more on xref:concept-docs:http-services.adoc#long-running-queries-big-data[when to choose Analytics].
0 commit comments