Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 3485 invoked from network); 29 Jul 2009 03:46:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jul 2009 03:46:33 -0000 Received: (qmail 92721 invoked by uid 500); 29 Jul 2009 03:46:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 92630 invoked by uid 500); 29 Jul 2009 03:46:32 -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 92620 invoked by uid 99); 29 Jul 2009 03:46:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2009 03:46:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kowsik@gmail.com designates 209.85.217.209 as permitted sender) Received: from [209.85.217.209] (HELO mail-gx0-f209.google.com) (209.85.217.209) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2009 03:46:22 +0000 Received: by gxk5 with SMTP id 5so253245gxk.11 for ; Tue, 28 Jul 2009 20:46:02 -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 :content-transfer-encoding; bh=G7lOUhsyh5qNaGs+kq84wn+JE58lpeop5PddihzsRvc=; b=WvxHnpO9PBo9xAbZbPcod2FvqX4dN9bMnq/jzIXw+dXg50lBhitvbPzMfWn3yw7lVT wYdGeixpsfI3c+Xfn0MS5DDj7zMAuNb775Ce8rzsNi5Yqj7BKpu0iQne3gMeF0ToqBvx VjgxGeeXb1c0iXsTCBHQKmw2qTBMguiuUt0gk= 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:content-transfer-encoding; b=u9+8ibBM7QpSjUK2BXYPHaco+OBhNuIKFXvW3UZpnXxA6F3HkO3aWm2LyV1EjddaAx HuE8Vl5MvegIgaRQisCOaWqvNwB3V/6hB2sSkAeew43oc21JR71TVHpCZVxnMNiKEmez g8p+uKm4vlzNNAvcf+LC7CQfz1OriDFfzTNwE= MIME-Version: 1.0 Received: by 10.150.225.14 with SMTP id x14mr653328ybg.32.1248839161042; Tue, 28 Jul 2009 20:46:01 -0700 (PDT) In-Reply-To: <28F0425B-00E9-4014-84E3-A73AE86576B1@gmail.com> References: <15444b1f0907281353l4cd86a61of93d08287119437c@mail.gmail.com> <28F0425B-00E9-4014-84E3-A73AE86576B1@gmail.com> Date: Tue, 28 Jul 2009 20:46:01 -0700 Message-ID: <7db9abd30907282046m1221d370k3bd68ea3b963f87f@mail.gmail.com> Subject: Re: Chaining MapReduce function pairs From: kowsik To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org It doesn't have to be a separate DB though. Example would be: you want to run a view (report), say once a day, and then trend on this (using another view). It's possible to generate the view results, add that back to couchdb as a document with a timestamp and then have meta-views that map/reduce these views to pull out trends and what not. I've done this and works like a charm. This kinda view is awesome from a motion chart perspective (http://code.google.com/apis/visualization/documentation/gallery/motionchart.html) where you can see 4-dimensional data transforming (time being one of the dimensions). While couch doesn't "natively" support this, this kind of thing is possible since the results of a view is just JSON which itself can be another native document. K. On Tue, Jul 28, 2009 at 8:00 PM, Paul Joseph Davis wrote: > There's nothing builtin. Me and a couple others have tried to do such things > but nothing has ever stuck. At the moment your best bet would be to write > som helpers to copy view output to a new db and go from there. > > > > On Jul 28, 2009, at 4:53 PM, Cortland Klein wrote: > >> I'm interested in creating views that chain multiple pairs of MapReduce >> functions together. This would allow me, for example, to do complex data >> analysis that's not possible with only one pair of MapReduce functions. >> When I say chain I mean the second map function takes as its input the >> key-value pairs outputted by the first reduce functions. >> >> Is this something CouchDB can do or will be able to do in the future? >> >> -- >> Cortland Klein +1 408 506 9791 >> http://pixelcort.com/ >> 2260 California Street #13 >> Mountain View, CA, USA 94040 >