Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 79947 invoked from network); 5 Apr 2010 19:04:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Apr 2010 19:04:28 -0000 Received: (qmail 93678 invoked by uid 500); 5 Apr 2010 19:04:27 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 93599 invoked by uid 500); 5 Apr 2010 19:04:27 -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 93591 invoked by uid 99); 5 Apr 2010 19:04:27 -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:04:27 +0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=AWL,FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 74.125.83.180 as permitted sender) Received: from [74.125.83.180] (HELO mail-pv0-f180.google.com) (74.125.83.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Apr 2010 19:04:19 +0000 Received: by pvc22 with SMTP id 22so1854366pvc.11 for ; Mon, 05 Apr 2010 12:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=gaoRjhULOYOhl9IASzOARaVZ1nn+8RG5Uz97SdZkB9Y=; b=QnuoVTrPb7aqB7hDzeLFhXW/Fhbc9J00i6scb2DTsnb/Cg22w6jGv9z6CoeRx5DMVd SMfZt5OsGzcIqj4H5SITrXG+vgWrzUK9Nk8csEZaRNDEKMokAgS66EmB+0CYOnbiIJby /yrMIYUII2wGLWBt5jBPMwb0xRZJYlaMpBvn8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=jNXHkXb/zpNAV8FVhOefQ223OGFrWBA1hrc46tv0y5AJeDDoJSiTZ5LaFgR7Ep9PT+ loR1vHoX0+8cUpaK0Cr4VHFiq6xSiei//ClCBdAmGNJCNnSDfIqAmhvbvIeN6BB81WfZ 6ZEuhSrAnJT1/14VdSorNafuMF/flNi7zsNmg= Received: by 10.140.88.9 with SMTP id l9mr4222116rvb.286.1270494239185; Mon, 05 Apr 2010 12:03:59 -0700 (PDT) Received: from [10.0.1.213] (h-74-1-186-35.snfccasy.static.covad.net [74.1.186.35]) by mx.google.com with ESMTPS id cm22sm9894482ibb.23.2010.04.05.12.03.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 05 Apr 2010 12:03:58 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: performance issues From: J Chris Anderson In-Reply-To: <4BBA315B.5010701@julianmoritz.de> Date: Mon, 5 Apr 2010 12:03:45 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <7FB459A8-6A46-4CC0-818B-AE60B554A673@gmail.com> References: <4BBA0C4A.9080304@julianmoritz.de> <4BBA315B.5010701@julianmoritz.de> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1077) On Apr 5, 2010, at 11:52 AM, Julian Moritz wrote: > Hi, >=20 > Julian Moritz schrieb: >> Hi, >>=20 >=20 > I've just found this via google: >=20 >>> We don't parallelize view index creation yet, so this is not an >>> additional problem for you. You can however build two views in >>> parallel and make use of two cores that way. >>=20 >=20 > If this is (still) true, view index creation is the bottleneck of my > application. Hence I'm just playing around and yet using 100% of my > core, I cannot use CouchDB anymore. >=20 We rarely see view generation that is actually limited by view-function = execution speed. The majority of the time the actual bottleneck is disk = IO. To parallelize view generation the best option is to run a = CouchDB-Lounge cluster. It looks like you might be better of removing your reduce function, = which might also speed things up. Chris > Regards > Julian >=20 >> 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: >>=20 >> function(doc){ >> emit([hash(doc.word), doc.word], null); >> } >>=20 >> and a simple reduce: >>=20 >> function(key, values, rereduce){ >> return true; >> } >>=20 >> calling that view with group=3Dtrue it does what I want. >>=20 >> When storing plenty of words to the database, one of my two cpu cores = is >> used completely by couchjs. >>=20 >> 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. >>=20 >> Is there a solution for that? Should I use another query-server? >>=20 >> Regards >> Julian >>=20