Skip to content

Commit ec704c2

Browse files
Merge pull request #223325 from TheovanKraay/patch-24
Update how-to-delete-by-partition-key.md
2 parents 6f56e5f + df78131 commit ec704c2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

articles/cosmos-db/nosql/how-to-delete-by-partition-key.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ ms.custom:
1515

1616
This article explains how to use the Azure Cosmos DB SDKs to delete all items by logical partition key value.
1717

18+
> [!IMPORTANT]
19+
> Delete items by partition key value is in public preview.
20+
> This feature is provided without a service level agreement, and it's not recommended for production workloads.
21+
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
22+
1823
## Feature overview
1924

2025
The delete by partition key feature is an asynchronous, background operation that allows you to delete all documents with the same logical partition key value, using the Comsos SDK.
2126

22-
Because the number of documents to be deleted may be large, the operation runs in the background. Though the physical deletion operation runs in the background, the effects will be available immediately, as the documents to be deleted will not appear in the results of queries or read operations.
27+
Because the number of documents to be deleted may be large, the operation runs in the background. Though the physical deletion operation runs in the background, the effects will be available immediately, as the documents to be deleted won't appear in the results of queries or read operations.
2328

2429
To help limit the resources used by this background task, the delete by partition key operation is constrained to consume at most 10% of the total available RU/s on the container each second.
2530

@@ -73,10 +78,10 @@ When the delete by partition key operation is issued, only the documents that ex
7378
### How is the delete by partition key operation prioritized among other operations against the container?
7479
By default, the delete by partition key value operation can consume up to a reserved fraction - 0.1, or 10% - of the overall RU/s on the resource. Any Request Units (RUs) in this bucket that are unused will be available for other non-background operations, such as reads, writes, and queries.
7580

76-
For example, suppose you have provisioned 1000 RU/s on a container. There is an ongoing delete by partition key operation that consumes 100 RUs each second for 5 seconds. During each of these 5 seconds, there are 900 RUs available for non-background database operations. Once the delete operation is complete, all 1000 RU/s are now available again.
81+
For example, suppose you've provisioned 1000 RU/s on a container. There's an ongoing delete by partition key operation that consumes 100 RUs each second for 5 seconds. During each of these 5 seconds, there are 900 RUs available for non-background database operations. Once the delete operation is complete, all 1000 RU/s are now available again.
7782

7883
### Known issues
79-
For certain scenarios, the effects of a delete by partition key operation is not guaranteed to be immediately reflected. The effect may be partially seen as the operation progresses.
84+
For certain scenarios, the effects of a delete by partition key operation isn't guaranteed to be immediately reflected. The effect may be partially seen as the operation progresses.
8085

8186
- [Aggregate queries](query/aggregate-functions.md) that use the index - for example, COUNT queries - that are issued during an ongoing delete by partition key operation may contain the results of the documents to be deleted. This may occur until the delete operation is fully complete.
8287
- Queries issued against the [analytical store](../analytical-store-introduction.md) during an ongoing delete by partition key operation may contain the results of the documents to be deleted. This may occur until the delete operation is fully complete.
@@ -102,4 +107,4 @@ See the following articles to learn about more SDK operations in Azure Cosmos DB
102107
- [Query an Azure Cosmos DB container
103108
](how-to-query-container.md)
104109
- [Transactional batch operations in Azure Cosmos DB using the .NET SDK
105-
](transactional-batch.md)
110+
](transactional-batch.md)

0 commit comments

Comments
 (0)