From user-return-19344-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Jan 4 19:06:02 2012 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4F330BB2A for ; Wed, 4 Jan 2012 19:06:02 +0000 (UTC) Received: (qmail 138 invoked by uid 500); 4 Jan 2012 19:06:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 99994 invoked by uid 500); 4 Jan 2012 19:06:00 -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 99986 invoked by uid 99); 4 Jan 2012 19:06:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 19:06:00 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 19:05:52 +0000 Received: by vbbfk1 with SMTP id fk1so18033865vbb.11 for ; Wed, 04 Jan 2012 11:05:31 -0800 (PST) Received: by 10.52.33.114 with SMTP id q18mr5373900vdi.75.1325703931235; Wed, 04 Jan 2012 11:05:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.167.202 with HTTP; Wed, 4 Jan 2012 11:05:10 -0800 (PST) X-Originating-IP: [68.4.109.196] In-Reply-To: References: From: Mark Hahn Date: Wed, 4 Jan 2012 11:05:10 -0800 Message-ID: Subject: Re: Parallel views in Python To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf3079bdf0e60e4704b5b87fe2 --20cf3079bdf0e60e4704b5b87fe2 Content-Type: text/plain; charset=ISO-8859-1 Views don't run until a read following the write. If you allow stale reads then you can read in parallel while view is building, if not then your read will be blocked until view is finished building. On Wed, Jan 4, 2012 at 5:42 AM, Yannick Schwartz wrote: > Hi all, > > I'm relatively new to couchdb. I'm using couchdb-python for interacting and > building my views. > However, I expected my maps/reduces to run in parallel when launching a > view, but that doesn't seem to happen (according to my CPU usage). Did I > miss something or is that the expected behaviour? Or is this because of the > Python client? > > Thanks, > > Yannick > --20cf3079bdf0e60e4704b5b87fe2--