Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93DB3CA0C for ; Tue, 2 Jul 2013 14:01:53 +0000 (UTC) Received: (qmail 33827 invoked by uid 500); 2 Jul 2013 14:01:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 33752 invoked by uid 500); 2 Jul 2013 14:01:51 -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 33744 invoked by uid 99); 2 Jul 2013 14:01:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 14:01:51 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of siriele2x3@gmail.com designates 209.85.212.176 as permitted sender) Received: from [209.85.212.176] (HELO mail-wi0-f176.google.com) (209.85.212.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2013 14:01:46 +0000 Received: by mail-wi0-f176.google.com with SMTP id ey16so4226574wid.3 for ; Tue, 02 Jul 2013 07:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=h0I2+GmUqlTku01VzKlOmQVDJF9ByaO++C3NMeziIlc=; b=Ih2u2htp4DFfto7cs2kqJBMcfnHHTN2PRjVx7tYlJrntuG+Ew/lLX27V1GTW67JtOT 52guhNB/nN+MWXvz19zGS4vTHUfp4XBPHoZkw38KSe3QLzPwR6x4Eyczf2YkHfFZCU/2 osLKsSoAyV+dkp6YyUReD054SZtf5Pd+k0iMmKPBNjYehlCtzUli73gMdpLbsOaGodhs ZjNtEkY4drodF1/mJaMfgegsJJUFeSqsB/TeaBHtrd/+07Zh15VkCyocWBjSRBZWWtFC S0Ye+TkRo0YzlswQhzdJslDHb6v+fvsRvC155y7cnLHv8a1ykWv8J12ZtPdoNuGtxSot KVww== MIME-Version: 1.0 X-Received: by 10.194.19.130 with SMTP id f2mr23164461wje.22.1372773684732; Tue, 02 Jul 2013 07:01:24 -0700 (PDT) Received: by 10.194.64.136 with HTTP; Tue, 2 Jul 2013 07:01:24 -0700 (PDT) Received: by 10.194.64.136 with HTTP; Tue, 2 Jul 2013 07:01:24 -0700 (PDT) In-Reply-To: <001b01ce772b$755532e0$5fff98a0$@gmail.com> References: <017a01ce76ca$a3f8b560$ebea2020$@gmail.com> <001b01ce772b$755532e0$5fff98a0$@gmail.com> Date: Tue, 2 Jul 2013 07:01:24 -0700 Message-ID: Subject: RE: Reduce overflow errors when number of documents >= 10? From: Stanley Iriele To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=047d7b5d4daed5e7f904e087c7bb X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d4daed5e7f904e087c7bb Content-Type: text/plain; charset=ISO-8859-1 Is that the only view in that design doc? Or is there another view with a reduce function? On Jul 2, 2013 6:53 AM, "N S Cuka" wrote: > My reduce function is empty -- i.e. there is no reduce.js file for that > view. I have also tried a null reduce function: > > function (key, values, rereduce) { > return null; > } > > As well as an empty reduce.js file. All of these give me the reduce > overflow error. > > The view that I am using is: > > function(doc) { > if( doc.type == 'set') { > emit(doc._id, doc.name); > } > } > > And the request looks like: > > http://localhost:5984/cuka/_design/testCouch/_view/allSets?reduce=false > > My documents are some metadata fields for _attachments consisting of jpg > files. > > Thank you for any insight. > > - N > > > > -----Original Message----- > From: Stanley Iriele [mailto:siriele@breaktimestudios.com] > Sent: Monday, July 01, 2013 10:35 PM > To: user@couchdb.apache.org > Subject: Re: Reduce overflow errors when number of documents >= 10? > > Hey...could you paste your reduce function as well? > On Jul 1, 2013 7:20 PM, "N S Cuka" wrote: > > > Hello Everyone, > > > > > > > > I am having a strange problem with my views in Couch DB 1.3. When I > > have > > 10 > > or more documents in my database, for some reason my views are bombing > > out with "reduce_overflow_error". The views in question (which work > > fine when > > n=9 documents) are both called with reduce=false. The views are very > > simple and simply select out a document based on type. E.g.: > > > > > > > >
> >
> >                 if( doc.type == 'set') {
> >
> >                                 emit(doc._id, doc.name);
> >
> >                 }
> >
> > 
> > > > > > > > The error is reproducible when the number of documents (of any type, > > not just type=="set") gets to 10 and disappears when the number goes back > to 9. > > Do I need to set the [query_server_config] reduce_limit = false server > > parameter to get this to work? It seems strange that 10 is the magic > > number and this is probably an important clue that I can't quite pick up > on. > > > > > > > > The other odd thing is that if I go into futon, go to the view, and > > put in a simple reduce function (just returning null), then the view > > will temporarily work (just in futon though). If I push the same > > function through Erica then I get the same error back or try to access > > the view that is working in futon through a REST call, it still bombs. > > This makes me wonder if there is some kind of encoding issue that is > > causing problems, but I can't see where that would come into play. > > This is an example of a query string that I am using from my couchapp: > > > > > > > > http://localhost:5984/cuka/_design/testCouch/_view/allSets?reduce=fals > > e > > > > > > > > TIA for any advice. > > > > > > > > - N > > > > > > > > Details: > > > > Windows 7 > > > > Couchdb 1.3 > > > > Firefox 21.0 > > > > > > > > > > --047d7b5d4daed5e7f904e087c7bb--