Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 4442 invoked from network); 10 Jun 2009 20:32:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Jun 2009 20:32:17 -0000 Received: (qmail 56811 invoked by uid 500); 10 Jun 2009 20:32:28 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56740 invoked by uid 500); 10 Jun 2009 20:32:28 -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 56727 invoked by uid 99); 10 Jun 2009 20:32:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 20:32:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of awolff@gmail.com designates 74.125.92.25 as permitted sender) Received: from [74.125.92.25] (HELO qw-out-2122.google.com) (74.125.92.25) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jun 2009 20:32:18 +0000 Received: by qw-out-2122.google.com with SMTP id 5so588050qwd.29 for ; Wed, 10 Jun 2009 13:31:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=jZmYwrCMWb6MKsCRdHP4gf2mFYzCl2DJv6PXm7r87Sw=; b=jn5NZ5yYkkfgw5jUAZEcz0WdXDFizZdOBqOBqPTkxJXCQaTmGw14s8CxSm/OHC4dFc ea9ERP4Q/dNGlPjAQFvUoDX9uBNRAcdhypt8IG3bO/mODUFHLSBWqcAZVin/r5BvRd0w Yz0wiilbCr4y0vb2qLf2iAAHOy3RyS/F8TmuE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hJbzRGgrzHXJdZ1cxwCmi35skinRN6WS5NlOAM/76zL2dDaHFnOQ/GMlEcWkTvE0KZ xlQ2zh7V/mNhqb/8E/DvxKaYnTU0dozSXwpq94MFJbWGFOaC9E6/4iy4cVAz1CtThgyS CDJJQL99OgwhfeB41EGz5Gn3ydUQvrlnu30Q0= MIME-Version: 1.0 Received: by 10.229.89.138 with SMTP id e10mr391052qcm.13.1244665917457; Wed, 10 Jun 2009 13:31:57 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Jun 2009 13:31:57 -0700 Message-ID: Subject: Re: document revisions From: Adam Wolff To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016364ef1ccdfd9ec046c045db0 X-Virus-Checked: Checked by ClamAV on apache.org --0016364ef1ccdfd9ec046c045db0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit *bump* I guess I'm talking about #4 on the page referenced below -- storing off old document revisions. does that really make sense, or should I consider a couchdb extension to just preserve document revisions? A On Tue, Jun 9, 2009 at 8:47 AM, Zachary Zolton wrote: > You'll want to model your documents in terms of revisions. > For some ideas, see approaches 3 and 4 on this wiki page: > http://wiki.apache.org/couchdb/How_to_design_for_replication > > On Tue, Jun 9, 2009 at 10:33 AM, Adam Wolff wrote: > > > Hi everyone,Our app needs to preserve document revisions. I know that the > > revision feature of couchdb is not intended for application-level > document > > revisions, but the semantics of couch's revisions are perfect for our > app, > > and I don't want to have to rebuild that feature. What's the best way to > > take advantage of couch's built-in revisions? I know we can't rely on the > > revisions being there, but they *are* there right after you write a new > > version. After a successful write, the caller could be responsible for > > putting a separate document for the old revision, right? > > > > Alternatively, is this a mod to couchdb that we should explore? A feature > > so > > that you can say: for the documents in this database, preserve the > > revisions > > even upon compaction. > > > > Thoughts? Thanks, > > A > > > --0016364ef1ccdfd9ec046c045db0--