From couchdb-user-return-2055-apmail-incubator-couchdb-user-archive=incubator.apache.org@incubator.apache.org Mon Dec 01 12:57:03 2008 Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 18005 invoked from network); 1 Dec 2008 12:57:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 12:57:03 -0000 Received: (qmail 12934 invoked by uid 500); 1 Dec 2008 12:57:14 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 12443 invoked by uid 500); 1 Dec 2008 12:57:13 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 12432 invoked by uid 99); 1 Dec 2008 12:57:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 04:57:13 -0800 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dmitriid@gmail.com designates 209.85.128.187 as permitted sender) Received: from [209.85.128.187] (HELO fk-out-0910.google.com) (209.85.128.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 12:55:42 +0000 Received: by fk-out-0910.google.com with SMTP id 19so2455314fkr.12 for ; Mon, 01 Dec 2008 04:56:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:reply-to:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding:content-disposition:sender; bh=eV/zBvMTCOwdkzxBDedQIDjfG4SP5VzLe9JVZnw2mGM=; b=ZrjeKtMWslwbHzLtUOFHXgabhkXUhgA0H9mnbhNTNjJ1Yp5lCeegKhRbGVq89OfLy1 8UG/qOn7R1AGCrsBhPH+4d9n92XSDhXS0hS2eypJj3nSzACiqXXOIFnGOa9HhSaTszJZ L30Nb3opWCZOS/b0j7I+9WPfKQDaSl6a/aXuI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:reply-to:to:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding :content-disposition:sender; b=ooyOdcTFr3UQTa24vJcG05nLb5LpAFE5rnTrGO8MFFU04K8/8p2/MNiqQFZKBuM9ot bVGuIDxlvQMjsbOY670I63EbKJTH2A6jiYntG+paozvgyfGnmH+yF7Ttmj9gJuo0YWBS CpqJoy34mB5+remJr4JZUCHPym4JuGZJbLX6w= Received: by 10.187.186.16 with SMTP id n16mr2594328fap.20.1228136188918; Mon, 01 Dec 2008 04:56:28 -0800 (PST) Received: from ?192.168.2.108? ([87.248.175.105]) by mx.google.com with ESMTPS id k29sm9037683fkk.37.2008.12.01.04.56.27 (version=SSLv3 cipher=RC4-MD5); Mon, 01 Dec 2008 04:56:28 -0800 (PST) Date: Mon, 01 Dec 2008 14:56:24 +0200 From: Dmitrii Dimandt Reply-To: Dmitrii Dimandt To: couchdb-user@incubator.apache.org Subject: Re: Simple rereduce introduction tutorial Message-ID: In-Reply-To: <4933C941.1070201@silencegreys.com> References: <4933C941.1070201@silencegreys.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: Dmitrii Dimandt X-Virus-Checked: Checked by ClamAV on apache.org --On December 1, 2008 6:23:45 AM -0500 Jedediah Smith=20 wrote: > > http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views > > I just updated that page with a more detailed explanation of reduce and > rereduce. > Thank you! The list of intermediate values in the explanation cleared=20 everything for me :) > Rereduce must *always* be taken into account, though it can often be > handled implicitly by the same code as reduce. > In my case it was as simple as calculating sums of money, so the code will=20 remain the same :) > Here is a simple example of a view in which that is not the case: > http://github.com/jchris/couchrest/tree/master/examples/word_count/views/ > markov > Yeah, I looked at it and couldn't wrap my head around it :) Now everythng=20 is much clearer :) > Dmitrii Dimandt wrote: >> Does anyone have an easy-to-understand introduction to/tutorial on the >> rereduce argument in the reduce function? >> >> I *sort of* understand why it's there and I have a vague understanding >> of how to work with it, but this understanding is just that =E2=80=94 = vague. >> >> What I would really like to see is a couple of examples and explanations >> on how and when it should be taken into account when creating the reduce >> function >> >