ConsistencyLevel Enumeration

 

Updated: June 30, 2017

These are the consistency levels supported by the Azure DocumentDB database service.

Namespace:   Microsoft.Azure.Documents
Assembly:  Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)

No code example is currently available or this language may not be supported.

Member nameDescription
BoundedStaleness

Bounded Staleness guarantees that reads are not too out-of-date. This can be configured based on number of operations (MaxStalenessPrefix) or time (MaxStalenessIntervalInSeconds). For more information on MaxStalenessPrefix and MaxStalenessIntervalInSeconds, please see ConsistencyPolicy.

ConsistentPrefix

ConsistentPrefix Consistency guarantees that reads will return some prefix of all writes with no gaps. All writes will be eventually be available for reads.

Eventual

Eventual Consistency guarantees that reads will return a subset of writes. All writes will be eventually be available for reads.

Session

Session Consistency guarantees monotonic reads (you never read old data, then new, then old again), monotonic writes (writes are ordered) and read your writes (your writes are immediately visible to your reads) within any single session.

Strong

Strong Consistency guarantees that read operations always return the value that was last written.

IsDefined

Determines if a certain property is defined or not. (Defined by TypeCheckFunctionsExtensions.)

IsNull

Determines if a certain property is null or not. (Defined by TypeCheckFunctionsExtensions.)

IsPrimitive

Determines if a certain property is of premitive JSON type. (Defined by TypeCheckFunctionsExtensions.)

The requested Consistency Level must match or be weaker than that provisioned for the database account. For more information on consistency levels, please see Consistency Levels article.

Return to top
Show: