File tree 2 files changed +5
-11
lines changed
fundamentals/crud/write-operations
includes/fundamentals/code-examples 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,9 @@ bulk write operation:
431
431
attempted.
432
432
|
433
433
| 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.
435
437
| Defaults to ``True``.
436
438
437
439
* - ``Let``
@@ -477,14 +479,6 @@ a delete operation:
477
479
:copyable:
478
480
:dedent: 8
479
481
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
-
488
482
Return Value
489
483
------------
490
484
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ static void BulkWriteSync()
102
102
}
103
103
) ,
104
104
new BulkWriteUpdateManyModel < BsonDocument > (
105
- , collection
105
+ collection ,
106
106
Builders < BsonDocument > . Filter . Eq ( "name" , "Mongo's Deli" ) ,
107
107
Builders < BsonDocument > . Update . Set ( "cuisine" , "Sandwiches and Salads" )
108
108
) ,
@@ -143,7 +143,7 @@ static async void BulkWriteAsync()
143
143
}
144
144
) ,
145
145
new BulkWriteUpdateManyModel < BsonDocument > (
146
- , collection
146
+ collection ,
147
147
Builders < BsonDocument > . Filter . Eq ( "name" , "Mongo's Deli" ) ,
148
148
Builders < BsonDocument > . Update . Set ( "cuisine" , "Sandwiches and Salads" )
149
149
) ,
You can’t perform that action at this time.
0 commit comments