You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|Direct | HTTPS | .NET and Java SDK | Ports within 10,000-20,000 range |
47
46
|Direct | TCP | .NET SDK | Ports within 10,000-20,000 range |
48
47
49
48
Azure Cosmos DB offers a simple and open RESTful programming model over HTTPS. Additionally, it offers an efficient TCP protocol, which is also RESTful in its communication model and is available through the .NET client SDK. Both Direct TCP and HTTPS use SSL for initial authentication and encrypting traffic. For best performance, use the TCP protocol when possible.
@@ -56,8 +55,7 @@ So if you're asking "How can I improve my database performance?" consider the fo
@@ -126,15 +124,15 @@ So if you're asking "How can I improve my database performance?" consider the fo
126
124
127
125
SQL .NETSDKversion1.9.0andabovesupportparallelqueries, whichenableyoutoqueryapartitionedcollectioninparallel. Formoreinformation, see [codesamples](https://github.com/Azure/azure-documentdb-dotnet/blob/master/samples/code-samples/Queries/Program.cs) related to working with the SDKs. Parallel queries are designed to improve query latency and throughput over their serial counterpart. Parallel queries provide two parameters that users can tune to custom-fit their requirements, (a) MaxDegreeOfParallelism: to control the maximum number of partitions then can be queried in parallel, and (b) MaxBufferedItemCount: to control the number of pre-fetched results.
128
126
129
-
(a) ***TuningMaxDegreeOfParallelism\:***
130
-
Parallelqueryworksbyqueryingmultiplepartitionsinparallel. However, datafromanindividualpartitionedcollectisfetchedseriallywithrespecttothequery. So, settingtheMaxDegreeOfParallelismtothenumberofpartitionshasthemaximumchanceofachievingthemostperformantquery, providedallothersystemconditionsremainthesame. Ifyoudon't know the number of partitions, you can set the MaxDegreeOfParallelism to a high number, and the system chooses the minimum (number of partitions, user provided input) as the MaxDegreeOfParallelism.
127
+
(a) ***Tuningdegreeofparallelism\:***
128
+
Parallelqueryworksbyqueryingmultiplepartitionsinparallel. However, datafromanindividualpartitionisfetchedseriallywithrespecttothequery. Settingthe`MaxDegreeOfParallelism` in [SDKV2](sql-api-sdk-dotnet.md) or `MaxConcurrency` in [SDKV3](sql-api-sdk-dotnet-standard.md) tothenumberofpartitionshasthemaximumchanceofachievingthemostperformantquery, providedallothersystemconditionsremainthesame. Ifyoudon't know the number of partitions, you can set the degree of parallelism to a high number, and the system chooses the minimum (number of partitions, user provided input) as the degree of parallelism.
0 commit comments