couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Samuel Newson <>
Subject Re: Bulk deletes and disk size
Date Sat, 08 Mar 2014 09:35:37 GMT

In that example you’re making the right change. but if those objects in the docs array had
more properties they would be preserved (forever).

"I though that compactation process would remove the body from the document
marked with "_deleted"." - This is not true.

Deleting docs via _bulk_docs can be exactly the same as deleting via -X DELETE but only if
you only preserve the three fields you need, _id, _rev and _deleted.

I forked your gist to illustrate:

Here I map any document to a doc with the minimal state necessary to delete the document.
The difference is clear, I hope.


On 8 Mar 2014, at 04:13, Gabriel de Oliveira Barbosa <> wrote:

> Thanks Jens, but I think I'm already doing this.
> Please check my gist which shows my logic:
> Do you think the problem is with the method used to update de docs using
> Couchdb Bulk API?

View raw message