couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@hahnca.com>
Subject Re: Getting the current _rev in case of a 409
Date Tue, 28 May 2013 16:29:51 GMT
> That would encourage users to blindly overwrite data by updating the _rev
to match.

I don't like designers telling me how write my program.  I have a large app
that does this all the time.  The proper execution doesn't care at
all about collisions.  This is causing me headaches for no reason.


On Tue, May 28, 2013 at 8:20 AM, Robert Newson <rnewson@apache.org> wrote:

> No, by design. That would encourage users to blindly overwrite data by
> updating the _rev to match. Instead, you'll need to fetch the
> document, getting its new content and rev, and re-apply your change.
>
> B.
>
>
> On 25 May 2013 22:53, Daniel Wertheim <daniel@wertheim.se> wrote:
> > Hi,
> >
> > is there a way to get CouchDb to return the current _rev of the document
> > being updated whenever a conflict occurs? Either in the content/body of
> the
> > response or as a header.
> >
> > Cheers,
> >
> > //Daniel
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message