You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
Hi,
I have another question. There's an upcoming feature allowing to delete all documents within a single logical partition (afaik also still in preview). Should be surfaced as DeleteAllItemsByPartitionKeyStreamAsync in the SDK if I'm not mistaken. I was unable to test this, most likely due to the documented limitation of partition key having to be specified in the query. But in theory, are these two features designed to eventually work together? Can I specify only the first part of the multi-level hierarchical partition key and have wiped all the sub-partitions?
Edit: fixed the first link.
The text was updated successfully, but these errors were encountered:
Hi,
building off the example in the readme, if I had a hierarchical partition key setup like so
var subpartitionKeyPaths = new List<string> { "/TenantId", "/UserId", "/TransactionId" };
Then the following code should allow me to dump all of the tenant's data once they e.g. want their data deleted.
var firstLevelParititonKey = new PartitionKeyBuilder()
.Add(tenantId)
.Build();
await container.DeleteAllItemsByPartitionKeyStreamAsync(firstLevelParititonKey);
Iterating over each transaction of each user of that particular tenant to provide the full 3-part partition keys doesn't seem practical.
Hi,
I have another question. There's an upcoming feature allowing to delete all documents within a single logical partition (afaik also still in preview). Should be surfaced as DeleteAllItemsByPartitionKeyStreamAsync in the SDK if I'm not mistaken. I was unable to test this, most likely due to the documented limitation of partition key having to be specified in the query. But in theory, are these two features designed to eventually work together? Can I specify only the first part of the multi-level hierarchical partition key and have wiped all the sub-partitions?
Edit: fixed the first link.
The text was updated successfully, but these errors were encountered: