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 5881310F65 for ; Tue, 12 Nov 2013 17:52:46 +0000 (UTC) Received: (qmail 92391 invoked by uid 500); 12 Nov 2013 17:52:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 92286 invoked by uid 500); 12 Nov 2013 17:52:39 -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 Delivered-To: moderator for user@couchdb.apache.org Received: (qmail 80056 invoked by uid 99); 10 Nov 2013 23:47:58 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ryan.mohr@gmail.com designates 209.85.212.182 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sJX+dKb2xxua4XrjwREGAIlacW0d/Kccs6jueGik/Lc=; b=k9dctVHIraqlT5gkrUP30kq+KmUxA8hNE2Re1PTeEHYvBtV1aL5bIAe4yE5FHUi2hA b6Wmw0u7LXc11TmEoOQBkcqDyO7XE62koIKknjE1Ua+U4hmuIUGW1j8n6k/9pB4xzQD8 4Tjz1OPHpAAfFMPrm/pgt1yuRfxjUmObi18j5mMIe3g4z0aGRvoOH5wdL9NTwfvu3nXm N1+NT/+zwalvXS/Y50DaPamMacjSFeqec2agMaCv6iwt+AWEa1CrSWJbniihicJzAkeq hiUzDdOUgbN9mfaCQIzIs2gDi72ZJbGzilEkiGmOd25iridkVwIWmUKLACvqB9E2nH5S dL7A== MIME-Version: 1.0 X-Received: by 10.180.149.234 with SMTP id ud10mr10038312wib.25.1384127251440; Sun, 10 Nov 2013 15:47:31 -0800 (PST) In-Reply-To: References: Date: Sun, 10 Nov 2013 13:47:31 -1000 Message-ID: Subject: Re: overwrite document without revision? From: Ryan Mohr To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=001a11c38424256a5004eadb3d8a X-Virus-Checked: Checked by ClamAV on apache.org --001a11c38424256a5004eadb3d8a Content-Type: text/plain; charset=ISO-8859-1 Dave, this isn't my thread. Alex had asked: > Is there any way to unconditionally overwrite a document without first making a round-trip to get the current rev? 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. Whether or not couchdb is a good fit for Alex's needs is a separate issue. On Sunday, November 10, 2013, Dave Cottlehuber wrote: > Hi Ryan, > > You're desperately trying to find a way to make CouchDB's immutable > storage system work like a mutable one. Please don't :-) -- it's going > against the grain. > > I'd suggest taking a step back for a moment, reading carefully through > these 2 sections in particular from the guide: > > http://guide.couchdb.org/draft/consistency.html > http://guide.couchdb.org/draft/conflicts.html > > What features are you after from your overall app that makes couchdb a > good fit (or not)? > > What Jens is referring to is that new_edits is an API that allows the > multi-master replication engine to introduce conflicts directly into > the existing revision tree for a document. You'll then need to resolve > these introduced conflicts directly to ensure that your new entry > "comes out on top" as there's no guarantees it won't by default. > > A+ > Dave > > --001a11c38424256a5004eadb3d8a--