You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by A wigen <am...@gmail.com> on 2012/10/03 19:20:54 UTC

Saving multiple versions of the same doc on couchDB

Hi,

I have a scenario in which I am not sure how to implement:
(1) User1 updates the document and pushes to couchDB from his personal iPAD
(2) User2 updates the same document and pushes to couchDB from his personal
iPAD
(3) There is another user - - admin. He pulls both the versions, merge and
then create the final version. He then notifies users about the updated doc.
Assumption: Once Users have "submitted" their version, they can not edit it
until they hear back form administrator. I am assuming this for now to
simplify my

Can I have multiple versions of the same document on couchDB with more than
one HTTP request (users have their own devices)? I know how to do it with
one HTTP req. [1].

[1]  <http://wiki.apache.org/couchdb/Replication_and_conflicts>"The
_bulk_docs API lets you submit multiple updates (and/or deletes) in a single
HTTP POST."

Thank you.
--AAT

Re: Saving multiple versions of the same doc on couchDB

Posted by Jens Alfke <je...@couchbase.com>.
On Oct 3, 2012, at 10:20 AM, A wigen <am...@gmail.com>> wrote:

Can I have multiple versions of the same document on couchDB with more than
one HTTP request (users have their own devices)? I know how to do it with
one HTTP req. [1].

I don’t understand the question. What you described above in steps 1-3 is a very standard scenario for conflict resolution and doesn’t require anything special.

—Jens