Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 57546 invoked from network); 10 Dec 2009 19:45:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 19:45:03 -0000 Received: (qmail 36244 invoked by uid 500); 10 Dec 2009 19:45:02 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 36174 invoked by uid 500); 10 Dec 2009 19:45:02 -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 36164 invoked by uid 99); 10 Dec 2009 19:45:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 19:45:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jchris@gmail.com designates 209.85.160.56 as permitted sender) Received: from [209.85.160.56] (HELO mail-pw0-f56.google.com) (209.85.160.56) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 19:44:52 +0000 Received: by pwi19 with SMTP id 19so119560pwi.35 for ; Thu, 10 Dec 2009 11:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=LtCQlSyfV3Gn4sICKXAXFLBA2UwQqfgNnV5B1cvuNNg=; b=roTGxv3Z4mhytmVJTMFbsIHl3yqGpX93Ws5MhRdrwyUdwjb+S4USapJdEuwyc733QW cKJ9rF0PxEXe7++Rqgc64+Ka9UamVaz66zEPGykIPTfMMWQJTK8JqPHA6Jdy18vvdoCZ VJjxdPbDLi6HP/OqdX7AY3Igfbe2Gsc/RVtf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=mkBaGn7aMSD/bXJb9sB0+ltrI4QBvmn6rbTLLp6ZgQpsSYMYSXhzlgUzF3Yv7TAIfu PlJoK9JPgLUq+s7FZpFg5cfVe+38ZggABvcDMSx8Qpmw3yfbcxzVhcnPTRNR7ENNp1LP hBRc3Cj/gVS7mY+qTmMJ6D4AB3Ow55B2Jtrmg= MIME-Version: 1.0 Sender: jchris@gmail.com Received: by 10.142.56.16 with SMTP id e16mr198489wfa.304.1260474271604; Thu, 10 Dec 2009 11:44:31 -0800 (PST) In-Reply-To: <1bca98390912081311ve2108edg129ee1a6cfda5e09@mail.gmail.com> References: <1bca98390912081250u74b3e33cu305e6689d797b6@mail.gmail.com> <20091208220338.21056yf7vhemjrcg@webmail.df.eu> <1bca98390912081311ve2108edg129ee1a6cfda5e09@mail.gmail.com> Date: Thu, 10 Dec 2009 11:44:31 -0800 X-Google-Sender-Auth: a09efb9c73e72a61 Message-ID: Subject: Re: scaling dimensions in reduce From: Chris Anderson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Dec 8, 2009 at 1:11 PM, Matteo Caprari w= rote: > Hi Kosta. > > I'm trying to output an svg chart using a _list function, so no client > is consuming the view directly. > > I could find the max and scale the data inside the list, but that > would consume quite a lot of memory for big datasets, > unless it was possibe to reset the iterator... > There are a few use cases which could benefit from the ability to specify an array of view queries in the POST body. By querying the reduce, and then the non-reduce, you could do this in a list. But first we need that feature. It would look like a more generalized form of this: http://issues.apache.org/jira/browse/COUCHDB-523 > -teo > > On Tue, Dec 8, 2009 at 9:03 PM, =A0 wrote: >> Hi! >> >>> To scale the values I'need to know the maximum point, =A0and I think >>> it'not possible to do that with map/reduce. >> >> You can find the maximum point using map/reduce. The division of all poi= nt >> must then be done manually given that point, e.g. in a view. Of course, >> doing it this way has problems with atomicity. >> >> HTH, >> Kosta >> >> >> > > > > -- > :Matteo Caprari > matteo.caprari@gmail.com > --=20 Chris Anderson http://jchrisa.net http://couch.io