Skip to content

Commit 8afa5b8

Browse files
committed
feedback
1 parent 3013cab commit 8afa5b8

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

source/fundamentals/crud/write-operations/bulk-write.txt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,9 @@ bulk write operation:
431431
attempted.
432432
|
433433
| If ``false``, the driver performs the operations in an
434-
arbitrary order and attempts to perform all operations.
434+
arbitrary order and attempts to perform all operations. If any of the write
435+
operations in an unordered bulk write fail, the driver
436+
reports the errors only after attempting all operations.
435437
| Defaults to ``True``.
436438

437439
* - ``Let``
@@ -477,14 +479,6 @@ a delete operation:
477479
:copyable:
478480
:dedent: 8
479481

480-
.. note:: Unordered Bulk Write Operations
481-
482-
Unordered bulk operations do not guarantee order of execution. The order can
483-
differ from the way you list them to optimize the runtime.
484-
485-
If any of the write operations in an unordered bulk write fail, the driver
486-
reports the errors only after attempting all operations.
487-
488482
Return Value
489483
------------
490484

source/includes/fundamentals/code-examples/BulkWrite.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static void BulkWriteSync()
102102
}
103103
),
104104
new BulkWriteUpdateManyModel<BsonDocument>(
105-
,collection
105+
collection,
106106
Builders<BsonDocument>.Filter.Eq("name", "Mongo's Deli"),
107107
Builders<BsonDocument>.Update.Set("cuisine", "Sandwiches and Salads")
108108
),
@@ -143,7 +143,7 @@ static async void BulkWriteAsync()
143143
}
144144
),
145145
new BulkWriteUpdateManyModel<BsonDocument>(
146-
,collection
146+
collection,
147147
Builders<BsonDocument>.Filter.Eq("name", "Mongo's Deli"),
148148
Builders<BsonDocument>.Update.Set("cuisine", "Sandwiches and Salads")
149149
),

0 commit comments

Comments
 (0)