Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 619DC8E35 for ; Thu, 18 Aug 2011 22:09:43 +0000 (UTC) Received: (qmail 5416 invoked by uid 500); 18 Aug 2011 22:09:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 5334 invoked by uid 500); 18 Aug 2011 22:09:41 -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 5326 invoked by uid 99); 18 Aug 2011 22:09:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 22:09:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of johnlicheng@gmail.com designates 209.85.218.52 as permitted sender) Received: from [209.85.218.52] (HELO mail-yi0-f52.google.com) (209.85.218.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2011 22:09:35 +0000 Received: by yie13 with SMTP id 13so2629608yie.11 for ; Thu, 18 Aug 2011 15:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=U0mU0yau0bHFTX3J5b7Sl7QlKx3+FdJd2WsY5WUkMFo=; b=t7mqDZU7BJb238mQUuZ11dw0FwPnF75wrPXzwKIW1PbvGcxnlc63uee20PYSODoJ++ +YQC6FUdybA0t5rKfta1LAi/Gus85OBEy+4hWmsXqBQWMMLalDXO0RCTSH6uJ7BGVhM9 ZawLyZW+oSo7yBxBlct/yFGzg7Sx19qS610A0= Received: by 10.101.189.1 with SMTP id r1mr1355017anp.6.1313705355064; Thu, 18 Aug 2011 15:09:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.105.3 with HTTP; Thu, 18 Aug 2011 15:08:55 -0700 (PDT) In-Reply-To: References: From: John Cheng Date: Thu, 18 Aug 2011 15:08:55 -0700 Message-ID: Subject: Re: The if-match header To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks! I've been doing a bit of testing with "Expect: 100-continue" and passing revision id in the header. I was expecting that this would allow CouchDB to detect conflicts without the client having to send data. But I'm not seeing much of a difference. Does CouchDB wait for the client to send the whole document before responding whether there was a conflict or not? On Thu, Aug 18, 2011 at 2:06 PM, Robert Newson wrote: > That's core CouchDB. > > On 18 August 2011 21:46, Jens Alfke wrote: >> >> On Aug 18, 2011, at 1:41 PM, John Cheng wrote: >> >> Does anyone know if this is unique to couchbase? >> >> The If-Match: / If-None-Match: / ETag: headers, and the algorithm for re= jecting conflicting updates by comparing eTags, are fundamental parts of HT= TP 1.1. And they=92re used by a lot of REST APIs, like the Atom Publishing = Protocol, and by WebDAV. >> >> =97Jens >> > --=20 --- John L Cheng