Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 9995 invoked from network); 4 May 2009 22:33:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 May 2009 22:33:48 -0000 Received: (qmail 86268 invoked by uid 500); 4 May 2009 22:33:47 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 86185 invoked by uid 500); 4 May 2009 22:33:47 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 86175 invoked by uid 99); 4 May 2009 22:33:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 22:33:47 +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 74.125.46.28 as permitted sender) Received: from [74.125.46.28] (HELO yw-out-2324.google.com) (74.125.46.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2009 22:33:37 +0000 Received: by yw-out-2324.google.com with SMTP id 2so2161634ywt.5 for ; Mon, 04 May 2009 15:33:16 -0700 (PDT) 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=+VJQJIIViFGK96T3zLjgxJhY7vS9fh5Izw7LGSPyZW8=; b=Urq8pO2c/Y29MgrdLBzp5wfaTTJHYUNxRTXCgTiJm0WwYQiT27YymEnbUkYyIHr0hm B4IxInn6PMuMuEs5bcdOKSrtFIvLfDxibG4lbLgUXZJLUkMbo3eKO/ggn5rj2M7kTAXT JN3pnFWvf31zdIWklhTeuUaEO14ahm1IQi5do= 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=hVcSK2GbGY75DFbZp5c1Ay1qwI3KEFgfizIT+4ge1DF0uxRGcZOIqbIjLLvNEEvrM4 lbHe+37JIWzC6yWyQl4VxlFYnGuXhXqU8/iskwfi75/WloZAml8SaRdS+Qs06/nXgoN5 UCmQODfeCpUFCngSVzRhhPGwQ+MQs+B5dK0rE= MIME-Version: 1.0 Sender: jchris@gmail.com Received: by 10.100.231.16 with SMTP id d16mr14166404anh.63.1241476396606; Mon, 04 May 2009 15:33:16 -0700 (PDT) In-Reply-To: <23569FFD-1C28-4EF9-8F30-7ADF4B8F22FC@gmail.com> References: <23569FFD-1C28-4EF9-8F30-7ADF4B8F22FC@gmail.com> Date: Mon, 4 May 2009 15:33:16 -0700 X-Google-Sender-Auth: 8f0a01c23be92de5 Message-ID: Subject: Re: reduce_limit error From: Chris Anderson To: dev@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 Mon, May 4, 2009 at 3:23 PM, Adam Kocoloski w= rote: > Thanks for the note, Chris. It might be nice if we could figure out a way > not to print "wazzup" N*1000 times when the test suite runs :-) =A0Other = than > that, cool! =A0Should make support a good bit easier. > Yes, that's an interesting side effect of Erlang's dump everything crash reporting. I'm not sure what to do about that, but a more general fix could be handy. Maybe it'd be worth it in this particular case to convert to an exit(normal) after sending the error message out to linked processes. > Adam > > On May 4, 2009, at 6:08 PM, Chris Anderson wrote: > >> Devs, >> >> I'm checking in a patch that should cut down on the number of mailing >> list questions asking why a particular reduce function is hella slow. >> Essentially the patch throws an error if the reduce function return >> value is not at least half the size of the values array that was >> passed in. (The check is skipped if the size is below a fixed amount, >> 200 bytes for now). >> >> I expect this heuristic will need fine tuning. Ideally we'd never >> raise the error on "good" reduces, and always raise it on >> "ill-conceived" ones. If you hit the error on a reduce that seems like >> it should be considered good, please ping the list so we have an >> opportunity to fine-tune. >> >> There is a config option: >> >> [query_server_config] >> reduce_limit =3D true >> >> changing this to false will revert to the old behavior. Ideally very >> few applications will require this config change, so if you find >> yourself changing this setting, it's a sign you should mail the list. >> >> -- >> Chris Anderson >> http://jchrisa.net >> http://couch.io > > --=20 Chris Anderson http://jchrisa.net http://couch.io