ContainerProperties.PartitionKeyDefinitionVersion Property

Definition

Gets or sets the PartitionKeyDefinitionVersion

The partition key definition version 1 uses a hash function that computes hash based on the first 100 bytes of the partition key. This can cause conflicts for documents with partition keys greater than 100 bytes.

The partition key definition version 2 uses a hash function that computes hash based on the first 2 KB of the partition key.

[Newtonsoft.Json.JsonIgnore]
public Microsoft.Azure.Cosmos.PartitionKeyDefinitionVersion? PartitionKeyDefinitionVersion { get; set; }
[<Newtonsoft.Json.JsonIgnore>]
member this.PartitionKeyDefinitionVersion : Nullable<Microsoft.Azure.Cosmos.PartitionKeyDefinitionVersion> with get, set
Public Property PartitionKeyDefinitionVersion As Nullable(Of PartitionKeyDefinitionVersion)

Property Value

System.Nullable<PartitionKeyDefinitionVersion>

The Partition Key Definition Version of the container

Attributes
Newtonsoft.Json.JsonIgnoreAttribute

Applies to