couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "Purge_Documents" by DaveCottlehuber
Date Fri, 02 Mar 2012 21:16:33 GMT
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.
+ 

Mime
View raw message