couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Goodall <>
Subject Compaction documentation vs behaviour
Date Tue, 27 Jan 2009 13:30:19 GMT

Both the wiki,, and Futon
warn that compacting removes deleted documents. However, a deleted
document is still represented in _all_docs_by_seq after compaction.

$ curl -X "PUT" -d "{}" "http://localhost:5984/compaction/doc"
$ curl -X "DELETE" "http://localhost:5984/compaction/doc?rev=143469513"
$ curl -X "POST" "http://localhost:5984/compaction/_compact"
$ curl "http://localhost:5984/compaction/_all_docs_by_seq"

Presumably, the wiki & Futon are incorrect as it makes complete sense
to keep deleted documents around for replication, but I'll wait for a
response to this email before I create a ticket.

- Matt

View raw message