couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fana <>
Subject Questions on replication (how to prevent DELETEs and resync deleted documents)
Date Sun, 27 Dec 2009 16:38:32 GMT


yesterday I played around with CouchDB's (0.10) replication feature.

I have a database which should be something like a "master".

Means, I want to replicate its complete content to other databases
and from them all content back to the master.

But I want to prevent documents to be deleted on the master
which have (accidentally or not) been deleted on one of the other

I also want the master to resync the documents which were deleted on the
other databases.

After playing around and reading the documentation
I found that deleted documents get only resynced again
if the revision was changed so the document appears in the "_changes"

Is it somehow possible to build a scenario like this?


* How can I resync deleted documents
without touching the doument and getting a new revision?
* How can I prevent documents to be deleted
and only integrate new or changed documents to the master?

Thanks in advance

View raw message