IndexingMode Enum

  • java.lang.Object
    • java.lang.Enum<IndexingMode>
      • com.microsoft.azure.documentdb.IndexingMode

public enum IndexingMode

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

Fields

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.

Applies to