From user-return-10399-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue May 11 09:40:50 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 67522 invoked from network); 11 May 2010 09:40:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 09:40:50 -0000 Received: (qmail 25268 invoked by uid 500); 11 May 2010 09:40:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 25166 invoked by uid 500); 11 May 2010 09:40:48 -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 25158 invoked by uid 99); 11 May 2010 09:40:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 09:40:47 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebastiancohnen@googlemail.com designates 74.125.82.52 as permitted sender) Received: from [74.125.82.52] (HELO mail-ww0-f52.google.com) (74.125.82.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 09:40:40 +0000 Received: by wwb39 with SMTP id 39so685363wwb.11 for ; Tue, 11 May 2010 02:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.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=olHMFd4FBZbXIdaTXRYplyal675qbIZGFR6hraUCyYQ=; b=LX6YvGhlT4EgZ5H2Q33AgoUi5FkboiBtJq5+BUwQpmYS9a/Nd4O6YnJWHtwevfYdeF iF7aYlG7GnZ05+fUAa86lJUhum16Ux6Z21nWOJOFIrs+mt9E+wpHgDaV47583qRUaKAk jjUBWNU9Z/1Ni+YohlLGSCoKBhF+6lMlPUUGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=bMsTT5FAzDKurTP04+Bf6zGOAd3tUTn1o/xiKIMksIOUtP8BeaHci+lf5AZs5Ou5jv m/trPQGmL7bXkq8UrST8AqAa1fU/eY2e7SREZaqSPr+mb5+QU8vBdUslS4gQr54JCS3g uVOSHpPdFaNAIR5jkdtYN71KxNPD9nJNv31nU= Received: by 10.227.156.9 with SMTP id u9mr5000057wbw.27.1273570819492; Tue, 11 May 2010 02:40:19 -0700 (PDT) Received: from [192.168.0.152] (xdsl-87-79-144-217.netcologne.de [87.79.144.217]) by mx.google.com with ESMTPS id x34sm18373358wbd.4.2010.05.11.02.40.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 02:40:19 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: Re: view generation speed From: Sebastian Cohnen In-Reply-To: Date: Tue, 11 May 2010 11:40:17 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1078) X-Virus-Checked: Checked by ClamAV on apache.org Great! Currently there are only three built-in funs (which I documented here: = http://wiki.apache.org/couchdb/Built-In_Reduce_Functions ). If raw performance is important for you, you could also consider using = native erlang views (instead of using javascript). On 11.05.2010, at 11:16, Manokaran K wrote: > On Tue, May 11, 2010 at 1:40 PM, Sebastian Cohnen < > sebastiancohnen@googlemail.com> wrote: >=20 >> _sum >>=20 >> instead of >>=20 >>> function(keys, values, rereduce){ >>> return sum(values); >>> } >>=20 >> I think the wiki is missing some information on build-in reduce = functions. >> I'll add this today. >>=20 >>=20 > Thanks a ton :-) >=20 > The improvement was dramatic. What took close to 3 hours took just 20 = mins > using _sum!! >=20 > Waiting to see what other tricks are available. >=20 > regds > mano