couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@couchbase.com>
Subject Re: Bulk deletes and disk size
Date Sat, 08 Mar 2014 03:38:54 GMT

On Mar 7, 2014, at 6:19 PM, Gabriel de Oliveira Barbosa <manobi.oliveira@gmail.com>
wrote:

> I though that compactation process would remove the body from the document
> marked with "_deleted".

Nope. It’s sometimes useful to preserve all or part of the body along with a deleted document
(for example, the reason for the deletion or the user who did it.)

If you want the attachments to get garbage collected, you’ll at least have to remove the
_attachments dictionary from the document when you add the _deleted property. But for maximum
space savings, update the doc to contain nothing but _deleted:true.

—Jens
Mime
View raw message