Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 83225 invoked from network); 5 Apr 2010 19:18:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Apr 2010 19:18:02 -0000 Received: (qmail 12894 invoked by uid 500); 5 Apr 2010 19:18:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 12865 invoked by uid 500); 5 Apr 2010 19:18:01 -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 12857 invoked by uid 99); 5 Apr 2010 19:18:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Apr 2010 19:18:01 +0000 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: local policy) Received: from [62.146.15.6] (HELO mars.a1a-server.de) (62.146.15.6) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Apr 2010 19:17:55 +0000 Received: from localhost (localhost [127.0.0.1]) by mars.a1a-server.de (Postfix) with ESMTP id 8567CE1663 for ; Mon, 5 Apr 2010 21:17:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mars.a1a-server.de Received: from mars.a1a-server.de ([127.0.0.1]) by localhost (mars.a1a-server.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BaKdlIGOLGzU for ; Mon, 5 Apr 2010 21:17:31 +0200 (CEST) Received: from [192.168.178.32] (unknown [188.106.6.35]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mars.a1a-server.de (Postfix) with ESMTPSA id 09510E164C for ; Mon, 5 Apr 2010 21:17:30 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.6.0 mars.a1a-server.de 09510E164C DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=a1a-server.de; s=mars; t=1270495051; bh=vhN4GXr3qmpsSuMwAL6klk84qsVUhFp2zMFgTKKp8N4=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=TAu+0gIbtTQa zgyUURnKuCoFDmWlR5hSxYLxwkxyn5fCwqLmWvf7qCdvON8cV2559M1Fm70cJL8e3HQ JW/s75UedBoSnozuT5u8sAgXZIfrHDqg1MMML84a3jhdk7dXy0NNf/EqZBWCXyGSWm0 dqRjpNYBEMJIEvbxmiTBRU5nc= Message-ID: <4BBA3750.9050600@julianmoritz.de> Date: Mon, 05 Apr 2010 21:17:36 +0200 From: Julian Moritz User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: performance issues References: <4BBA0C4A.9080304@julianmoritz.de> <4BBA315B.5010701@julianmoritz.de> <8F54C13F-9022-4EC7-911F-BF7BE4337B69@gmail.com> In-Reply-To: <8F54C13F-9022-4EC7-911F-BF7BE4337B69@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, Adam Kocoloski schrieb: > > On Apr 5, 2010, at 2:52 PM, Julian Moritz wrote: > > > Hi Julian, it is still true that CouchDB will use only one couchjs > process for all the map functions in a single design doc. It uses a > second couchjs for the reduce functions, and of course separate design > docs get their own processes as well. > > In my experience simple view indexing was almost always limited by the > Erlang VM, so parallelizing was premature. If you've got a modern > SpiderMonkey and you're still CPU limited perhaps that's no longer the > case. Can you remind us of the Couch and SM versions here? > > Adam I'm not using any version of spider monkey. If I'd install spidermonkey on my ubuntu laptop, I cannot use most of the programs I do need (e.g. firefox and eclipse). I've configured couchdb (version 0.11) like this: --with-js-lib=/usr/lib/xulrunner-devel-1.9.1.8/lib/ --with-js-include=/usr/lib/xulrunner-devel-1.9.1.8/include Best Regards Julian > >> >>> I've developed a (in my eyes) simple view. I have a wordlist which does >>> not contain unique words. I want to store it in a view, with every word >>> occurring once and ordered by random. Therefore I have a simple view >>> function: >>> >>> function(doc){ >>> emit([hash(doc.word), doc.word], null); >>> } >>> >>> and a simple reduce: >>> >>> function(key, values, rereduce){ >>> return true; >>> } >>> >>> calling that view with group=true it does what I want. >>> >>> When storing plenty of words to the database, one of my two cpu cores is >>> used completely by couchjs. >>> >>> Isn't the view built using two (or all) cpu cores? I thought (obviously >>> I'm wrong) that it would be calculated in parallel and using a >>> quadro-core (or more cores) would make storing faster. >>> >>> Is there a solution for that? Should I use another query-server? >>> >>> Regards >>> Julian >>> >