From user-return-13546-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun Nov 07 11:20:17 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 22557 invoked from network); 7 Nov 2010 11:20:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Nov 2010 11:20:16 -0000 Received: (qmail 6709 invoked by uid 500); 7 Nov 2010 11:20:47 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 6236 invoked by uid 500); 7 Nov 2010 11:20:43 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 6228 invoked by uid 99); 7 Nov 2010 11:20:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 11:20:42 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_MED,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [145.58.30.184] (HELO out1a.mail.omroep.nl) (145.58.30.184) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 11:20:33 +0000 Received: from localhost (ou1aclean [10.10.30.156]) by out1a.mail.omroep.nl (Postfix MTA - NPO ICT) with ESMTP id 820B93C00205 for ; Sun, 7 Nov 2010 12:20:13 +0100 (CET) X-Virus-Scanned: NPO ICT Received: from tweehoog.vpro.nl (tweehoog.vpro.nl [145.58.169.4]) by out1a.mail.omroep.nl (Postfix MTA - NPO ICT) with ESMTP id 676493C00096 for ; Sun, 7 Nov 2010 12:20:13 +0100 (CET) Received: from exmail.vpro.nl ([145.58.171.81] helo=VS-EX-01.intra.vpro.nl) by tweehoog.vpro.nl with esmtp (Exim 3.36 #1) id 1PF3ID-0004Lo-00 for user@couchdb.apache.org; Sun, 07 Nov 2010 12:20:13 +0100 Received: from VS-EX-01.intra.vpro.nl ([145.58.171.81]) by VS-EX-01.intra.vpro.nl ([145.58.171.81]) with mapi; Sun, 7 Nov 2010 12:20:13 +0100 From: Nils Breunese To: "user@couchdb.apache.org" Date: Sun, 7 Nov 2010 12:19:53 +0100 Subject: RE: Write race conditions, working without _rev Thread-Topic: Write race conditions, working without _rev Thread-Index: Act+IyxDbEGNDjqcRhiKpr/xgZeIFQASobHB Message-ID: References: , In-Reply-To: Accept-Language: nl-NL Content-Language: nl-NL X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: nl-NL Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org 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 ------------------------------------------------------------------------