public class TransactionsQueryConfig extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TransactionsQueryConfig.Builder |
Modifier and Type | Method and Description |
---|---|
static TransactionsQueryConfig.Builder |
builder()
Returns a new
PerTransactionQueryConfigBuilder . |
static TransactionsQueryConfig.Builder |
scanConsistency(QueryScanConsistency scanConsistency)
Customizes the default consistency guarantees for all queries inside this transaction.
|
public static TransactionsQueryConfig.Builder builder()
PerTransactionQueryConfigBuilder
.public static TransactionsQueryConfig.Builder scanConsistency(QueryScanConsistency scanConsistency)
Tuning the scan consistency allows to trade data "freshness" for latency and vice versa. By default
QueryScanConsistency.REQUEST_PLUS
is used for any queries inside a transaction, which means that the
indexer will wait until any indexes used are consistent with all mutations at the time of the query.
If this level of consistency is not required, use QueryScanConsistency.NOT_BOUNDED
which will execute
the query immediately with whatever data are in the index.
scanConsistency
- the index scan consistency to be used.Copyright © 2024 Couchbase, Inc.. All rights reserved.