question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logical Partition Deletion

See original GitHub issue

Hi, I would like to ask question regarding logical partition deletion. I’ve recently came across this PR for PKDeletePurger, which has updated its implementation and adds new method DeleteAllItemsByPartitionKeyAsync. The name of PR says the implementation is meant for SDK 3. Can you please verify that this will be shipped with SDK 3 and if you have any estimate when? As a workaround I found that REST API of Cosmos Containers already implements ability to delete whole logical partition through calling this endpoint[Container]/operations/partitionkeydelete. I just want to verify that this approach is correct and production ready as I couldn’t find much of an info about cosmos REST API changelog, is there any? And are there any gotchas when calling cosmos db directly via REST API ?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
InquisitorJaxcommented, Dec 13, 2022

I’ve shipped app updates that use the preview version, and it’s working as expected. As mentioned though - it seems this has been stuck in preview status for a long time now - looking forward to not have to rely on preview builds to ship production code 😉

1reaction
DevBaburajcommented, Jul 6, 2022

Yes, it will be shipped on this SDK (aka v3). We expect it to be in a preview package in a couple of months by which time we will expose some metrics around the deletion, improve stability, add a sample and some documentation. There are a many caveats to using the API today and we will reduce some of them by preview - I would suggest to use alternatives in the mean time if they work for your use case: just query for and then delete items in parallel at the rate you want, or use the bulk support we have in the SDK to delete items with high throughput if you’re okay with it using all of the provisioned container throughput, etc.

@j82w, @abhijitpai, is there any expected date for this feature to be publicly available? I can see that this has been released in preview status in Feb 2022 (https://github.com/Azure/azure-cosmos-dotnet-v3/pull/2948).

Read more comments on GitHub >

github_iconTop Results From Across the Web

The reasons to delete extended partition in Windows 10,8,7
Right-click the logical partition and select Delete Partition. Step 3. Select the way to delete partition. Delete partition quickly is the ...
Read more >
Deleting a logical partition using the HMC
You can use the Hardware Management Console (HMC) to delete a logical partition and all of the partition profiles associated with the ...
Read more >
Ways to Delete the Extended Partition and Why You ...
Step 2. Right-click the logical partition and select Delete Volume. You should repeat the steps to delete the remaining logical and extended partition....
Read more >
How To Delete A Logical Partition Without Disturbing The ...
I want to merge the free space with the 5 GB unallocated space and want to create a primary partition to install another...
Read more >
Deleting a Partition Logical Drive or Volume
Right-click on the partition you want to delete and select “Delete Volume.” Confirm that you want to delete the partition by selecting the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found