Skip to content

Commit dca4d6d

Browse files
committed
Edit pass for Bulk executor dotnet doc
1 parent 58e68f4 commit dca4d6d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/cosmos-db/bulk-executor-dot-net.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Now let's switch to working with code by downloading a sample .NET application f
3535
git clone https://github.com/Azure/azure-cosmosdb-bulkexecutor-dotnet-getting-started.git
3636
```
3737

38-
The cloned repository contains two samples "BulkImportSample" and "BulkUpdateSample." You can open either of the sample applications, update the connection strings in App.config file with your Azure Cosmos DB account’s connection strings, build the solution, and run it.
38+
The cloned repository contains two samples "BulkImportSample" and "BulkUpdateSample". You can open either of the sample applications, update the connection strings in App.config file with your Azure Cosmos DB account’s connection strings, build the solution, and run it.
3939

4040
The "BulkImportSample" application generates random documents and bulk imports them to your Azure Cosmos account. The "BulkUpdateSample" application bulk updates the imported documents by specifying patches as operations to perform on specific document fields. In the next sections, you will review the code in each of these sample apps.
4141

@@ -97,7 +97,7 @@ The "BulkImportSample" application generates random documents and bulk imports t
9797

9898
|**Parameter** |**Description** |
9999
|---------|---------|
100-
|enableUpsert | A flag to enable upsert of the documents. If a document with the given ID already exists, it's updated. By default, it is set to false. |
100+
|enableUpsert | A flag to enable upsert operations on the documents. If a document with the given ID already exists, it's updated. By default, it is set to false. |
101101
|disableAutomaticIdGeneration | A flag to disable automatic generation of ID. By default, it is set to true. |
102102
|maxConcurrencyPerPartitionKeyRange | The maximum degree of concurrency per partition key range, setting to null will cause library to use a default value of 20. |
103103
|maxInMemorySortingBatchSize | The maximum number of documents that are pulled from the document enumerator, which is passed to the API call in each stage. For in-memory sorting phase that happens before bulk importing, setting this parameter to null will cause library to use default minimum value (documents.count, 1000000). |
@@ -111,15 +111,15 @@ The "BulkImportSample" application generates random documents and bulk imports t
111111
|NumberOfDocumentsImported (long) | The total number of documents that were successfully imported out of the total documents supplied to the bulk import API call. |
112112
|TotalRequestUnitsConsumed (double) | The total request units (RU) consumed by the bulk import API call. |
113113
|TotalTimeTaken (TimeSpan) | The total time taken by the bulk import API call to complete the execution. |
114-
|BadInputDocuments (List\<object>) | The list of bad-format documents that were not successfully imported in the bulk import API call. You should fix the documents returned and retry import. Bad-formatted documents include documents whose ID value is not a string (null or any other datatype is considered invalid). |
114+
|BadInputDocuments (List\<object>) | The list of bad-format documents that were not successfully imported in the bulk import API call. Fix the documents returned and retry import. Bad-formatted documents include documents whose ID value is not a string (null or any other datatype is considered invalid). |
115115

116116
## Bulk update data in your Azure Cosmos account
117117

118118
You can update existing documents by using the BulkUpdateAsync API. In this example, you will set the `Name` field to a new value and remove the `Description` field from the existing documents. For the full set of supported update operations, refer to the [API documentation](https://docs.microsoft.com/dotnet/api/microsoft.azure.cosmosdb.bulkexecutor.bulkupdate?view=azure-dotnet).
119119

120120
1. Navigate to the "BulkUpdateSample" folder and open the "BulkUpdateSample.sln" file.
121121

122-
2. Define the update items along with the corresponding field update operations. In this example, you will use `SetUpdateOperation` to update the `Name` field and `UnsetUpdateOperation` to remove the `Description` field from all the documents. You can also perform other operations like increment a document field by a specific value, push specific values into an array field, or remove a specific value from an array field. To learn about different methods provided by the the bulk update API, refer to the [API documentation](https://docs.microsoft.com/dotnet/api/microsoft.azure.cosmosdb.bulkexecutor.bulkupdate?view=azure-dotnet).
122+
2. Define the update items along with the corresponding field update operations. In this example, you will use `SetUpdateOperation` to update the `Name` field and `UnsetUpdateOperation` to remove the `Description` field from all the documents. You can also perform other operations like increment a document field by a specific value, push specific values into an array field, or remove a specific value from an array field. To learn about different methods provided by the bulk update API, refer to the [API documentation](https://docs.microsoft.com/dotnet/api/microsoft.azure.cosmosdb.bulkexecutor.bulkupdate?view=azure-dotnet).
123123

124124
```csharp
125125
SetUpdateOperation<string> nameUpdate = new SetUpdateOperation<string>("Name", "UpdatedDoc");
@@ -150,7 +150,7 @@ You can update existing documents by using the BulkUpdateAsync API. In this exam
150150
|**Parameter** |**Description** |
151151
|---------|---------|
152152
|maxConcurrencyPerPartitionKeyRange | The maximum degree of concurrency per partition key range, setting this parameter to null will make the library to use the default value(20). |
153-
|maxInMemorySortingBatchSize | The maximum number of update items pulled from the update items enumerator passed to the API call in each stage. Forr the in-memory sorting phase that happens before bulk updating, setting this parameter to null will cause the library to use the default minimum value(updateItems.count, 1000000). |
153+
|maxInMemorySortingBatchSize | The maximum number of update items pulled from the update items enumerator passed to the API call in each stage. For the in-memory sorting phase that happens before bulk updating, setting this parameter to null will cause the library to use the default minimum value(updateItems.count, 1000000). |
154154
| cancellationToken|The cancellation token to gracefully exit the bulk update operation. |
155155

156156
**Bulk update response object definition**

0 commit comments

Comments
 (0)