Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 49614 invoked from network); 5 Jun 2009 22:19:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jun 2009 22:19:26 -0000 Received: (qmail 48705 invoked by uid 500); 5 Jun 2009 22:19:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 48668 invoked by uid 500); 5 Jun 2009 22:19:37 -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 48658 invoked by uid 99); 5 Jun 2009 22:19:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 22:19:37 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 22:19:26 +0000 Received: from [10.0.1.3] (f053040129.adsl.alicedsl.de [::ffff:78.53.40.129]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Fri, 05 Jun 2009 22:19:06 +0000 Message-Id: From: Jan Lehnardt To: user@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Optimizing view building Date: Sat, 6 Jun 2009 00:18:34 +0200 References: <8ffb00ae0906051323u4f8e6c6uea4f398853db724b@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On 6 Jun 2009, at 00:05, Randall Leeds wrote: > On Fri, Jun 5, 2009 at 16:23, Nadav Samet wrote: > >> Hi, >> >> I have a 600k documents in one database and building a view (with a >> trivial >> map function) takes about 40 minutes on a single core server. I was >> wondering if there's a way to tell how the time is divided between >> running >> the javascript map function and actually building the view. > > > The javascript runs in a separate process so you could watch the CPU > time > for beam vs the couchjs process. beam & couchjs wait for each other while the respective partner process is working. There is room for optimization, we haven't gotten around to that yet :) See this and the dev@ mailing list archives for detailed discussions. Cheers Jan --