Share via


TableRequestOptions.TableQueryMaxDegreeOfParallelism Property

Definition

Gets or sets the degree of parallelism for execution of a cross-partition query. 0 is serial with no pre-fetching, 1 is serial with pre-fetching, and higher values increase the rate of parallelism. Default is -1, which lets Azure Cosmos DB dynamically determine the value at runtime.

public int? TableQueryMaxDegreeOfParallelism { get; set; }
member this.TableQueryMaxDegreeOfParallelism : Nullable<int> with get, set
Public Property TableQueryMaxDegreeOfParallelism As Nullable(Of Integer)

Property Value

The maximum number of concurrent operations during parallel execution. Defaults to -1.

Remarks

0 is serial with no pre-fetching, 1 is serial with pre-fetching, and higher values increase the rate of parallelism. -1 lets Azure Cosmos DB dynamically determine the value at runtime. Only supported in Direct Mode.

Applies to