Click or drag to resize

IndexUpdateMode Enumeration

Used to specify when a View index is updated when running a Query.
NameDescription
Before If needed, update the index before running the Query (default). This guarantees up-to-date results at the expense of a potential delay in receiving results.
Never Never update the index when running a Query. This guarantees receiving results the fastest at the expense of potentially out-of-date results.
After If needed, update the index asynchronously after running the Query. This guarantees receiving results the fastest, at the expense of potentially out-of-date results, and that subsequent Queries will return more accurate results.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
[SerializableAttribute]
public enum IndexUpdateMode
Members
  Member nameValueDescription
Before0 If needed, update the index before running the Query (default). This guarantees up-to-date results at the expense of a potential delay in receiving results.
Never1 Never update the index when running a Query. This guarantees receiving results the fastest at the expense of potentially out-of-date results.
After2 If needed, update the index asynchronously after running the Query. This guarantees receiving results the fastest, at the expense of potentially out-of-date results, and that subsequent Queries will return more accurate results.
See Also