From user-return-7977-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu Dec 10 19:54:23 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 62048 invoked from network); 10 Dec 2009 19:54:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Dec 2009 19:54:23 -0000 Received: (qmail 49106 invoked by uid 500); 10 Dec 2009 19:54:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 49017 invoked by uid 500); 10 Dec 2009 19:54:21 -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 49007 invoked by uid 99); 10 Dec 2009 19:54:21 -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:54:21 +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 matteo.caprari@gmail.com designates 209.85.219.216 as permitted sender) Received: from [209.85.219.216] (HELO mail-ew0-f216.google.com) (209.85.219.216) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Dec 2009 19:54:12 +0000 Received: by ewy8 with SMTP id 8so232364ewy.35 for ; Thu, 10 Dec 2009 11:53:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=+TkTVTpfSvTGDfBmUqOfU3yBA8OncoBvFFcLTNu8upw=; b=OCODsDcJ7yo2GiDMosq5oKK/UwRTbOhBIyzIFvq+47xXXlms4KjaK/WAG1HDwj98KZ /g2wsor0K344421Q5AAXZoOEPrUjoh2QQWr1m4rrpM9DSKKNI91q9BjvDhRATQqUQ1xc CAXsO2so+JXxP+rPwG8MBp9RfKT6LkHSql+Cs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=NDrwCXVn2wB2YJSlfnkv3rUsZ9mbI6CVkBn9hPQPc0T4JEhEWc50ykhv7drY87zq5L 2FIjjZvbAtXpzI4c23C3hxhK/IvE8UwAM4vkMBwWg9ywfh7mMfMHSbR3RnMPJgHpolAX JEfrywxcuDh1HmXK8zpggQ6mGs04zwMvEKxXs= MIME-Version: 1.0 Received: by 10.216.88.83 with SMTP id z61mr140390wee.140.1260474831158; Thu, 10 Dec 2009 11:53:51 -0800 (PST) In-Reply-To: References: <1bca98390912081250u74b3e33cu305e6689d797b6@mail.gmail.com> <20091208220338.21056yf7vhemjrcg@webmail.df.eu> <1bca98390912081311ve2108edg129ee1a6cfda5e09@mail.gmail.com> From: Matteo Caprari Date: Thu, 10 Dec 2009 19:53:31 +0000 Message-ID: <1bca98390912101153v724a96b7va28e01998a73a263@mail.gmail.com> Subject: Re: scaling dimensions in reduce To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Interesting. Let's say I'd like to implement that feature. Where would you start? Is there a document like "start hacking couchdb"? -teo On Thu, Dec 10, 2009 at 7:44 PM, Chris Anderson wrote: > On Tue, Dec 8, 2009 at 1:11 PM, Matteo Caprari = wrote: >> 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, =C2=A0 wrote: >>> Hi! >>> >>>> To scale the values I'need to know the maximum point, =C2=A0and I thin= k >>>> it'not possible to do that with map/reduce. >>> >>> You can find the maximum point using map/reduce. The division of all po= int >>> 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 >> > > > > -- > Chris Anderson > http://jchrisa.net > http://couch.io > --=20 :Matteo Caprari matteo.caprari@gmail.com