Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 12199 invoked from network); 28 Oct 2008 21:15:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2008 21:15:31 -0000 Received: (qmail 20351 invoked by uid 500); 28 Oct 2008 21:15:35 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 20316 invoked by uid 500); 28 Oct 2008 21:15:35 -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 20305 invoked by uid 99); 28 Oct 2008 21:15:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 14:15:35 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.78.149] (HELO ey-out-1920.google.com) (74.125.78.149) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 21:14:20 +0000 Received: by ey-out-1920.google.com with SMTP id 4so1487693eyg.54 for ; Tue, 28 Oct 2008 14:14:56 -0700 (PDT) Received: by 10.187.208.18 with SMTP id k18mr745364faq.75.1225227894954; Tue, 28 Oct 2008 14:04:54 -0700 (PDT) Received: by 10.187.238.13 with HTTP; Tue, 28 Oct 2008 14:04:54 -0700 (PDT) Message-ID: Date: Tue, 28 Oct 2008 21:04:54 +0000 From: "Nick Johnson" To: couchdb-user@incubator.apache.org Subject: Re: Getting only updates from a view In-Reply-To: <7db9abd30810262054j3c9c9156se80be08449569dbf@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_40169_14404532.1225227894953" References: <83FAD073-9DD0-495C-B70D-C587CA3563FD@msc-mobile.com> <27d8d0930810260736g58acbd4bn61c417d3e1fd3b95@mail.gmail.com> <7db9abd30810262054j3c9c9156se80be08449569dbf@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_40169_14404532.1225227894953 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Oct 27, 2008 at 3:54 AM, kowsik wrote: > The view server (couchjs) today is primarily a local process > interacting with couch through stdin/stdout. This is the one that does > all the map/reduce. I can envision at some point (not sure if and when > it's planned), the view servers executing on remote machines through > the exact same line-based JSON protocol (though using TCP) to heavily > parallelize the map/reduce process. The incremental set of documents > to be indexed can be easily chunked and distributed across this > cluster. Until that's possible, the single machine solution is going > to require some serious compute power (and lots of memory). Hm. Actually, you could do this right now, by writing a view 'server' that connects to an actual server over TCP (and a corresponding stub for the other end). It would make a neat project, actually. The only real problem would be convincing couch to spawn an appropriate number of threads for the 'real' parallelism available. > > IMHO, this [potential] parallelization (in addition to all the > benefits of document-centric storage) is what makes couch incredibly > attractive from a scaling perspective. > > K. > > On Sun, Oct 26, 2008 at 7:08 PM, Julien Guimont > wrote: > > Thanks for the answer, pretty obvious. > > > > I would have 1000 to 10000 views to update periodically upon document > > updates. There would be 5-10 updates a second and more than 500k > documents. > > Will couchdb scale in that case? > > > > Thank you, > > Julien. > > > > On 26-Oct-08, at 10:36 AM, Ayende Rahien wrote: > > > >> You create a view indexed by update date (or some other always > >> incrementing > >> value).Then you can ask to get the values by that value. > >> > >> On Sun, Oct 26, 2008 at 4:19 PM, Julien Guimont < > >> julien.guimont@msc-mobile.com> wrote: > >> > >>> Hello, > >>> > >>> I am looking at CouchDB for a new project. So far it matches a lot of > >>> requirements that would require ugly hacks using a traditional DB. > >>> > >>> One requirement I have is to always have the delta results of a view > >>> (what > >>> documents matching the view has changed since last update). > >>> > >>> I read http://wiki.apache.org/couchdb/RegeneratingViewsOnUpdate > >>> > >>> and I understood that the views are being reprocessed only with the > >>> documents that have changed. (Am I wrong?) > >>> > >>> Well, if it is, can how can I get the view results only for those > changed > >>> documents? > >>> > >>> Thank you! > >>> Julien. > >>> > > > ------=_Part_40169_14404532.1225227894953--