couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <>
Subject Re: overwrite document without revision?
Date Wed, 13 Nov 2013 05:18:59 GMT

On Nov 10, 2013, at 3:47 PM, Ryan Mohr <> wrote:

> Everyone said no. Looks like it's totally doable using new_edits=false and
> a script that resolves any conflicts by simply picking the most recent
> update.

That’s a Rube Goldberg solution that’s more expensive than doing it the right way. Think
of what that script needs to do.

In other words, it’s also totally doable using a simpler script that GETs the current revision,
stores its _rev into the new document, and PUTs the new document.

View raw message