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 CF876CE74 for ; Thu, 26 Jul 2012 15:06:00 +0000 (UTC) Received: (qmail 30042 invoked by uid 500); 26 Jul 2012 15:05:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30009 invoked by uid 500); 26 Jul 2012 15:05:59 -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 30000 invoked by uid 99); 26 Jul 2012 15:05:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 15:05:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tisdall@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 15:05:52 +0000 Received: by eaa14 with SMTP id 14so230325eaa.11 for ; Thu, 26 Jul 2012 08:05:31 -0700 (PDT) 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=5AV7Cp9S01tc/v8RJir0SsU4dEF/yO9Ec6z/Hp0cgCQ=; b=LMNAfV/vpSwgLik1idpjfzBRylj2zuKh7tw28Im9/HXCqmuFjUiXGGBPTHMqH/jBU9 sR17SPowZ8VCw9vZOWTRfUToaex4zKuJp0nTRE2PFLlaO5KAat6k40dbmzDnS83VX+XY WhOMVWh9dioweB5HMDqaSR4+KMHC6z2/Q5qP3hIML0XXzMwWloqxfAmMQvSyDy8upP1e bFirk4HU2KTY0QCMg3iSvpm/RGzkWNbyqo3C3ml24h5WJll4H/YFxjBmDKtYWo/+dx4M X9PtSdowhEJopiT6rEMLMbJETZkihWsyzf0ZqxTO4izBmEFOHxOPb+T93sRSyCe7w1F3 kmdw== MIME-Version: 1.0 Received: by 10.14.178.129 with SMTP id f1mr4435431eem.5.1343315131315; Thu, 26 Jul 2012 08:05:31 -0700 (PDT) Received: by 10.14.180.72 with HTTP; Thu, 26 Jul 2012 08:05:31 -0700 (PDT) In-Reply-To: <7EF3DA29-6961-42FC-93EB-81E54144CF25@apache.org> References: <7EF3DA29-6961-42FC-93EB-81E54144CF25@apache.org> Date: Thu, 26 Jul 2012 11:05:31 -0400 Message-ID: Subject: Re: accessing previous document revisions within a view From: Tim Tisdall To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Yeah, I'm not planning to rely on it, just a way to hint at which documents I need to look at without having to look at all documents or alter the document's structure. Okay, I guess I'll have to figure out a different approach then... thanks. On Thu, Jul 26, 2012 at 10:17 AM, Robert Newson wrote: > Tim, > > The couchdb revision system is to provide eventual consistency between database replicas. It is not a user-facing document versioning system. Old revisions are deleted during compaction and are not replicated either. > > B. > > On 26 Jul 2012, at 15:00, Tim Tisdall wrote: > >> Is it possible to access revisions through a filter? Using a filter >> on the changes log would also work for what I'd like to do. >> >> On Wed, Jul 25, 2012 at 6:38 PM, Alexander Shorin wrote: >>> Hi Tim, >>> >>> CouchDB documents revisions aren't for versioning things[1]. To access >>> to previous document revision within view you need to store previous >>> revisions inlined within document and emit them in map function. Note, >>> that this solution promises that document size will rapidly grow over >>> time - you'll need to limit stored inlined revisions somehow. >>> >>> [1] http://wiki.apache.org/couchdb/Document_revisions >>> >>> -- >>> ,,,^..^,,, >>> >>> >>> On Thu, Jul 26, 2012 at 2:29 AM, Tim Tisdall wrote: >>>> Is it possible to access a previous revision of a document from within >>>> a view? I'd like to output something in a view based on the >>>> difference between the revisions of the documents. >>>> >>>> -Tim >