An Azure NoSQL database service for app development.
Hi @Deepak Patil , welcome to Microsoft Q&A forum.
We need to use below properties to get/set the concurrency in java sdk for Azure Cosmos DB:
This is available for all the sdk versions and we can use it with CosmosQueryRequestOptions class.
CosmosQueryRequestOptions options = new CosmosQueryRequestOptions();
// 0 maximum parallel tasks, effectively serial execution
options.setMaxDegreeOfParallelism(0);
Please refer to below code snippet for more details:
azure-cosmos-java-sql-api-samples
Please let us know if this helps or else we can discuss further. If answer helps, you can mark it ' Accept Answer'.