incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Breunese <N.Breun...@vpro.nl>
Subject RE: Write race conditions, working without _rev
Date Sun, 07 Nov 2010 11:19:53 GMT
I don't know about your curl, but mine only understands --head or -I if you want to do a HEAD
request.

Nils.
________________________________________
Van: couchdb user [couchdbuser@gmail.com]
Verzonden: zondag 7 november 2010 3:25
Aan: user@couchdb.apache.org
Onderwerp: Re: Write race conditions, working without _rev

To follow up on what Chad said about avoiding reading the doc to get
the _rev, you can also use a HEAD request, while it is an extra
request, it will use a lot less resources.


$ curl -HEAD http://127.0.0.1:5984/example/post98
{"_id":"post98","_rev":"1-9e6543bfb3cbf3b7c36904a1ea4b806f","tags":"[2,5]"}
------------------------------------------------------------------------
 VPRO
 phone:  +31(0)356712911
 e-mail: info@vpro.nl
 web:    www.vpro.nl
------------------------------------------------------------------------

Mime
View raw message