File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
fundamentals/crud/write-operations
includes/fundamentals/code-examples Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff 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-
488482Return Value
489483------------
490484
Original file line number Diff line number Diff 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 ) ,
You can’t perform that action at this time.
0 commit comments