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 112C34DCB for ; Mon, 23 May 2011 08:22:01 +0000 (UTC) Received: (qmail 23513 invoked by uid 500); 23 May 2011 08:21:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 23484 invoked by uid 500); 23 May 2011 08:21: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 23476 invoked by uid 99); 23 May 2011 08:21:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2011 08:21:59 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of afters.mail@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 May 2011 08:21:53 +0000 Received: by iyf40 with SMTP id 40so6724694iyf.11 for ; Mon, 23 May 2011 01:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=/PbRdTcqOfBJNTF9L874UrA6lnwfwu1t7/K/5jP1Nr8=; b=wwG1KHf6FthImEr2NnaugDTAgSZ0SLu/F71KkhIh1gCIFSmn/TtpwduoPPiv6P9aaR yrADyit3UAhvQRFVNB5JSjLtPNP920s2/sLYZMNJ+nmpiGMiGU2VyZtkdrUbny2PbdDW 227HMERiXvuAcDjXfUZJClzXn+Ar67mlck7cg= 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=GbnW9GVImFOLujusgqpNjPPPPE5cjvOzb+I3FBmcTtWWGn/o3Bk8QLzTwg5qbQCKVw kMKqatgqWLV+nVsqDp+1YxMJBtSB4Sut/tkcS8oxDm11b7Gsetfz/AKPNirYNmY0nEkx TKpJiFte3/3WPYQJi4kfs/qGi2YonHzljunm8= MIME-Version: 1.0 Received: by 10.42.6.146 with SMTP id a18mr2321281ica.206.1306138892219; Mon, 23 May 2011 01:21:32 -0700 (PDT) Received: by 10.231.35.75 with HTTP; Mon, 23 May 2011 01:21:32 -0700 (PDT) In-Reply-To: References: Date: Mon, 23 May 2011 11:21:32 +0300 Message-ID: Subject: Re: DB that mirrors a view From: afters To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001636988e47b2b5c204a3ed2874 --001636988e47b2b5c204a3ed2874 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Come to think of it, maybe a simple way to achieve this is with an intermediate db: This db would contain just the calculated map values, and would have a view that does the reduce. This would mimic the original map-reduce operation with one key difference: I would control this db's update rate, and thus could fetch a correct view for each change in the original db. On 23 May 2011 10:23, afters wrote: > It would save some effort, but probably wouldn't help in fetching the > corresponding reduce values. > > On 23 May 2011 09:44, Benoit Chesneau wrote: > >> >> Hi, >> >> Indeed, in trunk and 1.1 you can pass a _view filter to change then a >> view param view=3Ddname/vname that allows you to get all changes using >> the map function and then know if your view have been updated. Maybe >> that can help. >> >> - beno=EEt >> > > --001636988e47b2b5c204a3ed2874--