Skip to content

Commit 706ec8d

Browse files
Merge pull request #224167 from gahl-levy/update-retryable-writes-doc
Document that bulk unordered write don't work with retryable writes
2 parents d765694 + 6626d81 commit 706ec8d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

articles/cosmos-db/mongodb/feature-support-40.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,9 @@ For example, with a sharded collection, sharded on key “country”: To delete
562562
- `db.coll.deleteMany({"country": "USA", "city": "NYC"})` - **Success**
563563
- `db.coll.deleteMany({"city": "NYC"})` - Fails with error **ShardKeyNotFound(61)**
564564

565+
> [!NOTE]
566+
> Retryable writes does not support bulk unordered writes at this time. If you would like to perform bulk writes with retryable writes enabled, perform bulk ordered writes.
567+
565568
To enable the feature, [add the EnableMongoRetryableWrites capability](how-to-configure-capabilities.md) to your database account. This feature can also be enabled in the features tab in the Azure portal.
566569

567570
## Sharding

articles/cosmos-db/mongodb/feature-support-42.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,9 @@ For example, with a sharded collection, sharded on key “country”: To delete
601601
- `db.coll.deleteMany({"country": "USA", "city": "NYC"})`**Success**
602602
- `db.coll.deleteMany({"city": "NYC"})` - Fails with error **ShardKeyNotFound(61)**
603603

604+
> [!NOTE]
605+
> Retryable writes does not support bulk unordered writes at this time. If you would like to perform bulk writes with retryable writes enabled, perform bulk ordered writes.
606+
604607
To enable the feature, [add the `EnableMongoRetryableWrites` capability](how-to-configure-capabilities.md) to your database account. This feature can also be enabled in the features tab in the Azure portal.
605608

606609
## Sharding

0 commit comments

Comments
 (0)