Skip to content

Get count of records purged #4964

Answered by nickva
rummitta asked this question in Q&A
Jan 17, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I don't understand powershell but there are a couple of ways you can estimate the number of documents purged.

First of all you can inspect the response of the purge request. Most purge request interactive, assuming your cluster nodes are all connected at the time it was made. The response of the purge request will look like "purged": { $doc: [$rev, ...]} if the revs and or docs were not found it won't be returned as "purged"

If you're purging the whole document (the only revision) then you can use the doc_count field in the db info response and check the count before and after the purge request and the difference would be the number of documents purged.

There is also the couchdb.document_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rummitta
Comment options

Answer selected by rummitta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants