Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 12966 invoked from network); 12 Feb 2009 17:09:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 17:09:02 -0000 Received: (qmail 93989 invoked by uid 500); 12 Feb 2009 17:08:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 93964 invoked by uid 500); 12 Feb 2009 17:08: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 93953 invoked by uid 99); 12 Feb 2009 17:08:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 09:08:59 -0800 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.217.162] (HELO mail-gx0-f162.google.com) (209.85.217.162) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 17:08:53 +0000 Received: by gxk6 with SMTP id 6so148326gxk.11 for ; Thu, 12 Feb 2009 09:08:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.198.20 with SMTP id v20mr1159757ybf.97.1234458511749; Thu, 12 Feb 2009 09:08:31 -0800 (PST) In-Reply-To: <621704FE-93A3-4D9E-9CE0-DA8D4D396775@apache.org> References: <5ca771940902120614o31e6d642vebff6681e2b9ca1b@mail.gmail.com> <621704FE-93A3-4D9E-9CE0-DA8D4D396775@apache.org> Date: Thu, 12 Feb 2009 12:08:31 -0500 Message-ID: <64a10fff0902120908y22ebfa3bu8946c225cd828415@mail.gmail.com> Subject: Re: view on view From: Dean Landolt To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd348441533780462bbc5ef X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd348441533780462bbc5ef Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On Thu, Feb 12, 2009 at 9:28 AM, Jan Lehnardt wrote: > > On 12 Feb 2009, at 15:14, =E5=D7=C7=C5=CE=C9=CA =EE=C1=CA=C4=C5=CE=D9=DB= =C5=D7 wrote: > > (I'm sorry for my english) >> > > No worries, I guess the majority reading here are no native > speakers (like me) :) > > > Can I run some view on documents that was resulted by another view? >> > > Not yet no. There have been discussions about this and different > ways to do it, but there are no definite plans to support this out of > the box. I believe there are client implementations that let you do > this by saving a view result in a new database and run the second > view there. It seems to me that once partitioning lands, temp views could take on a whole new utility. There was a conversation a little while back on irc abou= t mapping over huge mbox files (or logs, or anything *massive *for that matter) and how views wouldn't make sense, or at least may require more storage than they're worth. In the original m/r paradigm though *every *que= ry is a "temp view" -- but when you have a metric shitton of compute nodes, that doesn't matter. Huge blocks of data are shuffled off to these compute nodes to hang out (a la Google FS or HDFS) to keep jobs from being bound by network io, and when you can distribute a db across a btree of couch instances, couch would do that for us too... Temp view queries start to look a lot sexier than persisting views in certain cases. Sure, you wouldn't run a front-end app off of them, but this one use case is all Hadoop, and on top of that tools like Pig and Hive do. Yet they're performant enough to be useful in the general case and *clutch*for massive data sets. Without a high enough ratio of compute power to data, temp views would stil= l be shite, but partitioning could fix this -- or at least make the ratio mor= e easily tunable. In this light, Damien's name slow_views makes a lot more sense. They'll never have millisecond response times but they'll be more than a simple hack -- they'll give us a kickass way to have chainable m/r without any of the bookkeeping hassles. --000e0cd348441533780462bbc5ef--