You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2012/03/02 22:16:33 UTC
[Couchdb Wiki] Trivial Update of "Purge_Documents" by DaveCottlehuber
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.
The "Purge_Documents" page has been changed by DaveCottlehuber:
http://wiki.apache.org/couchdb/Purge_Documents?action=diff&rev1=2&rev2=3
Comment:
PURGE hates Replication
After compaction, no trace, not even the _id value, will remain. If you have purged more than one document between querying your views, you will find that they will rebuild from scratch. This is because you have removed the information necessary to perform a correct incremental update. Finally, if you are using _purge to recover space, you are almost certainly using CouchDB inappropriately. The most common reason developers use _purge inappropriately is when managing short-lived data (log entries, message queues, etc). A better remedy is to periodically switch to a new database and delete the old one (once the entries in it have all expired).
+ Remember that if the document has been replicated, then the same operation would need to be applied to all replicas as well, ensuring that replication is stopped during this operation, to avoid it being replicated back again.
+