UNPKG

ottoman

Version:
30 lines 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SearchConsistency = void 0; var SearchConsistency; (function (SearchConsistency) { /** * No degree consistency required. * Called as NOT_BOUNDED in Couchbase Server. */ SearchConsistency[SearchConsistency["NONE"] = 0] = "NONE"; /** * Operations performed by this ottoman instance will be reflected * in queries performed by this particular ottoman instance. This * type of consistency will be slower than no consistency, but faster * than GLOBAL as the index state is tracked internally rather than * requested from the server. * Called as AT_PLUS in Couchbase Server */ SearchConsistency[SearchConsistency["LOCAL"] = 1] = "LOCAL"; /** * Operations performed by any client of the Couchbase Server up to the * time of the queries dispatch will be reflected in any index results. * This is the slowest of all consistency levels as it requires that the * server synchronize its indexes to the current key-value state prior to * execution of the query. * Called as REQUEST_PLUST in Couchbase Server */ SearchConsistency[SearchConsistency["GLOBAL"] = 2] = "GLOBAL"; })(SearchConsistency = exports.SearchConsistency || (exports.SearchConsistency = {})); //# sourceMappingURL=search-consistency.js.map