Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 22603 invoked from network); 23 Sep 2009 09:56:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Sep 2009 09:56:18 -0000 Received: (qmail 22097 invoked by uid 500); 23 Sep 2009 09:56:17 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 22046 invoked by uid 500); 23 Sep 2009 09:56:17 -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 22036 invoked by uid 99); 23 Sep 2009 09:56:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2009 09:56:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.180.197.51] (HELO web45301.mail.sp1.yahoo.com) (68.180.197.51) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 23 Sep 2009 09:56:07 +0000 Received: (qmail 91502 invoked by uid 60001); 23 Sep 2009 09:55:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1253699746; bh=slGXi72Vg16XRttpAPGBvFkbgZ84Z2O/Q900646Jl2w=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=ZHCW37CDWCMGYornzNds4nMz7xxlMi1/m9fjc0tju5nco8XdYiiZii/8udUwo6FqH/XSTnbQ7IaY8TRPDGZ2P+KiMPQAj4x0FEwRU2DttibEg/LSOOYannoAeXaIob9zlEOP9xXZiGG+oVmQGWMCCHZfyCwRkaxofopS4CQGDcg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=TiBiKhKjGjDi2IaSqPDSg732mue5KyZ3dZOW1Zmily6Vb6W3CDwdNvgoCy7W7Y2n9XywVu3sM1ACr1WRLKjCqUMdQbN77tIfTOc7ImWX0gmkhJhZ3Uw/mFAaKBP7RilZP47gVlSHQ8e1VcvVYFz61qNJ6e1/fuwuAnaodBeXVAA=; Message-ID: <321978.87709.qm@web45301.mail.sp1.yahoo.com> X-YMail-OSG: j67wjboVM1k1OtSNMPxGUWYfX97.yKqQyR8z5YyUypbNE3DSBw.ZERFE2zAM4jXVF3fzYo1UqYz0BcB9cImC7eH74DXLlkDQDd978tWmWHmf6Jes_f.Hk2tnj4QhPSUtUJk5DwZ1ViA_MIcB8Ca0hF3UbEk0dRBzruEpmsM8PBn_qhWYtFayg7mZ4SnjpHHrTaBL9tt_.XAvAgIgPt0mkPRhlWXu.e1TM48TaCtGmuNcOnYLliUY8AkR.w-- Received: from [220.255.7.228] by web45301.mail.sp1.yahoo.com via HTTP; Wed, 23 Sep 2009 02:55:46 PDT X-Mailer: YahooMailRC/157.18 YahooMailWebService/0.7.347.2 References: <24941.65701.qm@web45306.mail.sp1.yahoo.com> <8ffb00ae0909222003g3c1783d7i4d5e0cd6abd35593@mail.gmail.com> Date: Wed, 23 Sep 2009 02:55:46 -0700 (PDT) From: go canal Subject: Re: how to work on multiple databases To: user@couchdb.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1607915749-1253699746=:87709" X-Virus-Checked: Checked by ClamAV on apache.org --0-1607915749-1253699746=:87709 Content-Type: text/plain; charset=us-ascii thanks. I quickly google, saw two lounge projects. guess this one is for the partitioning solution ? That's very good, I am about to ask this feature ..... Is there a plan to merge this into CouchDB core ? rgds, canal ________________________________ From: Chris Anderson To: user@couchdb.apache.org Sent: Wednesday, September 23, 2009 1:29:36 PM Subject: Re: how to work on multiple databases On Tue, Sep 22, 2009 at 8:03 PM, Nadav Samet wrote: > The HTTP API works against one database at a time (at one http server). All > libraries I have seen will let you talk to multiple databases, but don't > have any functionality to send a single query to several databases and > aggregate the results. (This kind of functionality is too > application-specific to be in a general purpose library.) The CouchDB-Lounge project has a query merging proxy which could be adapted for this purpose. > On Tue, Sep 22, 2009 at 7:51 PM, go canal wrote: > >> Hello, >> I am only one-day 'old' in the Couch world, CouchDB is really cool :-) >> I have a lot of questions though, sorry if these had been already >> answered... >> >> Are there APIs available for working on multiple databases ? >> >> Here is the use case/data model: >> * a CouchDB database for one project >> all project related documents are stored in the DB. >> * a user can participate in multiple projects >> >> let's say a user wants to display a list of his documents in all projects, >> how do we support this ? Do I have to issue one query command for each >> database then aggregate the result ? >> >> thanks >> canal >> >> >> >> > > > > > -- > Sincerely yours, > Nadav > -- Chris Anderson http://jchrisa.net http://couch.io --0-1607915749-1253699746=:87709--