Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 98744 invoked from network); 27 Oct 2008 03:54:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2008 03:54:55 -0000 Received: (qmail 82744 invoked by uid 500); 27 Oct 2008 03:54:58 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 82708 invoked by uid 500); 27 Oct 2008 03:54:58 -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 82697 invoked by uid 99); 27 Oct 2008 03:54:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2008 20:54:58 -0700 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 74.125.92.147 as permitted sender) Received: from [74.125.92.147] (HELO qw-out-1920.google.com) (74.125.92.147) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2008 03:53:47 +0000 Received: by qw-out-1920.google.com with SMTP id 4so978274qwk.54 for ; Sun, 26 Oct 2008 20:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=HYszp0BLjnNEq6/AF/EMRGKgKIGpc7EeXVd+yw0c2Jo=; b=S+7rqf9NSEZliZqi2pntAnXz5K+SWd+KGWycj9lbQd2KfCt0WcsQzdW/phl9tvmZFd WCAsSze+w8dQz9JkAgtJpMIaIt7DUXo3vyjxUjmilkportXZHfa34zKynOoSOygDDb3x HKOdrx6uy5R/M1hRmHVajg1PiclBGWh9o3IDc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dt68RmADONEOZOvWTo/1khqZI4nzZzRmTFGE6sEObH7QF4kvc/9S8qQsWei0HjpwZO hUJkcGjOl+LTrBJRo2wWIBRrKzh9Gt0HkZuqdqwml+zWWh+fghkP4G1znFt3YGR5GUgq R7zfzvTOssELgVy4BHKq7M7OInvhvMsRIJYto= Received: by 10.214.218.14 with SMTP id q14mr1877767qag.280.1225079656000; Sun, 26 Oct 2008 20:54:16 -0700 (PDT) Received: by 10.214.12.19 with HTTP; Sun, 26 Oct 2008 20:54:15 -0700 (PDT) Message-ID: <7db9abd30810262054j3c9c9156se80be08449569dbf@mail.gmail.com> Date: Sun, 26 Oct 2008 20:54:15 -0700 From: kowsik To: couchdb-user@incubator.apache.org Subject: Re: Getting only updates from a view In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <83FAD073-9DD0-495C-B70D-C587CA3563FD@msc-mobile.com> <27d8d0930810260736g58acbd4bn61c417d3e1fd3b95@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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). 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. >>> >