IndexingMode 枚举

定义

Specifies the supported indexing modes in the Azure Cosmos DB database service.

public enum IndexingMode
继承
java.lang.Object
java.lang.Enum<IndexingMode>
IndexingMode

字段

Consistent

Index is updated synchronously with a create or update operation.

With consistent indexing, query behavior is the same as the default consistency level for the collection. The index is always kept up to date with the data.

Lazy

Index is updated asynchronously with respect to a create or update operation.

With lazy indexing, queries are eventually consistent. The index is updated when the collection is idle.

None

No index is provided.

Setting IndexingMode to "None" drops the index. Use this if you don't want to maintain the index for a document collection, to save the storage cost or improve the write throughput. Your queries will degenerate to scans of the entire collection.

适用于