Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 55416 invoked from network); 26 Mar 2008 01:16:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 01:16:14 -0000 Received: (qmail 17255 invoked by uid 500); 26 Mar 2008 01:16:13 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 17224 invoked by uid 500); 26 Mar 2008 01:16:13 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 17215 invoked by uid 99); 26 Mar 2008 01:16:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 18:16:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jchris@gmail.com designates 209.85.162.181 as permitted sender) Received: from [209.85.162.181] (HELO el-out-1112.google.com) (209.85.162.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 01:15:19 +0000 Received: by el-out-1112.google.com with SMTP id o28so2023241ele.3 for ; Tue, 25 Mar 2008 18:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=sjqHcCFusIe038wXFMwal0Oy3y4gVbPaPJFAumvK4qQ=; b=B/A+Vpx8Mh6MO7ftSEnoQflYaKoLDRmBMujhk+Vsa8YzLCsI02KMn5nJEv/dBScjrto0GG3396sSjhPsvBkdxcsZhdnw5Ur/e6/svqDA9/3oiNgtY9FqcKaSKrJuDRljmS+lsimuA5OWFnXCTK3ClpB+rPT53ycOI7aGJNh9amQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=D/pTCA+HdzV59SL2273fZlcZpL5tSE8MW9rLH5nV/CNsfYEVm0U2V0KjFpPti3ycnmuAB523hktVmkXHVYUxKvs741iHQJpMqURwM1XlV6kyzvtlBoJhv9qoJ/8L4IdruKS4py5bLFf7Ed/LG7NnqkGvGYV1eCMY5lb8aK73qPA= Received: by 10.151.82.3 with SMTP id j3mr4496480ybl.78.1206494108209; Tue, 25 Mar 2008 18:15:08 -0700 (PDT) Received: by 10.150.185.15 with HTTP; Tue, 25 Mar 2008 18:15:08 -0700 (PDT) Message-ID: Date: Tue, 25 Mar 2008 18:15:08 -0700 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: incremental map/reduce scope In-Reply-To: <43453CBE-31B2-444D-9388-D094AE7DAE18@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <43453CBE-31B2-444D-9388-D094AE7DAE18@gmail.com> X-Google-Sender-Auth: b6ee2897327013e6 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Mar 25, 2008 at 5:34 PM, Sho Fukamachi wrote: > Will the M/R function be able to reach across databases? For example, > if I make one database called couch.local/ blogs and one called > couch.local/posts, will I be able to define an index function that > reaches into both? Or is it limited to within the scope of one database? Sho, I'm not a CouchDB internals expert, but I imagine you could use replication to merge two databases at any point in the future. I'm also pretty sure that map functions can't reach into the contents of more than one document (although reduce will be able to merge all data with the same key, I think, so you could perhaps "join" together related documents using a clever map function, although you may be better off doing joins in your application.) Chris -- Chris Anderson http://jchris.mfdz.com