couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@boutiquing.com>
Subject how to ignore conflicts?
Date Fri, 04 Mar 2011 01:19:09 GMT
I have a situation where I only want to know the latest version of a
doc and I don't care about any older versions.  I don't care about
conflicts.

As far as I can tell there is no way to ignore conflicts in couch.  So
I have to read an old version, ignore everything but the version
value, and then save my new version.  Since this isn't atomic I have
to check for a conflict and repeat it.  I have to do this in a number
of places in my code.

I was just wondering if anyone knows of a more elegant way to do this.
 Has anyone else found a need for this?

Mime
View raw message