Skip to content

Commit 61ffd5d

Browse files
authored
Merge pull request #110396 from ealsur/users/ealsur/bulkv3cp
Cosmos DB - Bulk migration note
2 parents 017008f + 5f80bdd commit 61ffd5d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

articles/cosmos-db/how-to-migrate-from-bulk-executor-library.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to migrate your application from using the bulk executor
44
author: ealsur
55
ms.service: cosmos-db
66
ms.topic: conceptual
7-
ms.date: 03/24/2020
7+
ms.date: 04/06/2020
88
ms.author: maquaran
99
---
1010

@@ -69,6 +69,15 @@ The `BulkOperationResponse` contains:
6969
1. The total of request units consumed.
7070
1. If there are failures, it displays a list of tuples that contain the exception and the associated item for logging and identification purpose.
7171

72+
## Retry configuration
73+
74+
Bulk executor library had [guidance](bulk-executor-dot-net.md#bulk-import-data-to-an-azure-cosmos-account) that mentioned to set the `MaxRetryWaitTimeInSeconds` and `MaxRetryAttemptsOnThrottledRequests` of [RetryOptions](https://docs.microsoft.com/dotnet/api/microsoft.azure.documents.client.connectionpolicy.retryoptions) to `0` to delegate control to the library.
75+
76+
For bulk support in the .NET SDK, there is no hidden behavior. You can configure the retry options directly through the [CosmosClientOptions.MaxRetryAttemptsOnRateLimitedRequests](https://docs.microsoft.com/dotnet/api/microsoft.azure.cosmos.cosmosclientoptions.maxretryattemptsonratelimitedrequests) and [CosmosClientOptions.MaxRetryWaitTimeOnRateLimitedRequests](https://docs.microsoft.com/dotnet/api/microsoft.azure.cosmos.cosmosclientoptions.maxretrywaittimeonratelimitedrequests).
77+
78+
> [!NOTE]
79+
> In cases where the provisioned request units is much lower than the expected based on the amount of data, you might want to consider setting these to high values. The bulk operation will take longer but it has a higher chance of completely succeeding due to the higher retries.
80+
7281
## Performance improvements
7382

7483
As with other operations with the .NET SDK, using the stream APIs results in better performance and avoids any unnecessary serialization.

0 commit comments

Comments
 (0)