From user-return-21068-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Jun 4 19:21:09 2012 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 653339FA3 for ; Mon, 4 Jun 2012 19:21:09 +0000 (UTC) Received: (qmail 58894 invoked by uid 500); 4 Jun 2012 19:21:08 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 58765 invoked by uid 500); 4 Jun 2012 19:21:07 -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 58755 invoked by uid 99); 4 Jun 2012 19:21:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 19:21:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andrew.melo@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-lpp01m010-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 19:21:01 +0000 Received: by lahj13 with SMTP id j13so3864976lah.11 for ; Mon, 04 Jun 2012 12:20:41 -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=1Qu416NWw8Iq3Eg51d252ZC20a7Plo7WqMUShpoU+aY=; b=H785aWmEiE5OehX8Zfh1WrYqskEKUs/ZE4BbhPCfxldGd/2XGajcSBYhGqwfMLACUK hO7YA1WlCbFIlsGwfD22duFJ9m9Yuo0buCTXdhWcnREy2zV9V4y9z/gtABO/I0Bk732U ko7kSdtkIOcqOtBuKjv2VN33SX2x+Tkze7XMTDJJ2fNJOhfAV6dsvSSCFD3bnQw0+hY7 N4yKchjMfkgJ92E15FdY9rCM4LTmhedZb3NzIqy3RH0mIQTi2ibs2EBnLOPbXgM672am jgRlJ49X9Py+8xl1003P0JfkwFVAQAAUPCYgCtzcrug1rHmoW7EwpNVRlL+M4rOvhKay fK+g== MIME-Version: 1.0 Received: by 10.152.148.169 with SMTP id tt9mr13718516lab.49.1338837641341; Mon, 04 Jun 2012 12:20:41 -0700 (PDT) Received: by 10.112.88.97 with HTTP; Mon, 4 Jun 2012 12:20:41 -0700 (PDT) In-Reply-To: <4FCD0690.4090202@stud.uniroma3.it> References: <4FCD0690.4090202@stud.uniroma3.it> Date: Mon, 4 Jun 2012 14:20:41 -0500 Message-ID: Subject: Re: Problems with CouchDB 1.2.0 views on large documents JSONs From: Andrew Melo To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=e89a8f23455d062b8604c1aa6ea4 --e89a8f23455d062b8604c1aa6ea4 Content-Type: text/plain; charset=UTF-8 On Mon, Jun 4, 2012 at 2:03 PM, Francesco Furiani < fra.furiani@stud.uniroma3.it> wrote: > Hi, > > i run a couchdb server (v1.2.0) over a mac (intel architecture, 8gb of > ram, os x version 10.6.8) installed with brew. > > The server itself is used as a storage of big jsons (example: > https://raw.github.com/cvdlab-**bio/webpdb/develop/docs/jsons/** > 2LGB-pretty-print.json) for a tiny uni project. > > When we load more than 3 of these jsons, all the map functions (we created > to retrieve documents besides a simple get by id) does not work. > A typical map is: > > function(doc){if(doc.TITLE.**title.match('.*INSULIN.*') !== null) > emit(doc.ID, doc);} > > but even a > > function(doc){emit(doc.ID, doc.ID)} > Are you sure you want doc.ID and not doc._id or something similar? > > cease to work. > > while when there are just 3 or 2 jsons in the database they work just fine. > I tried increasing the stack for couchjs (1gb now, going over 1gb doesn't > work it seems), increasing limits for files (4096), increasing timeout for > processes but in the end i don't get any results and only a (Error: > os_process_error {exit_status,0}) from the db. > > Is the json we provide too big for couch? We need to redisign map to > remove parts for json? Is this a known bug (but i haven't found anything > over the net)? > > Any clue that might help me? > > Thanks for the help, > Francesco > > -- -- Andrew Melo --e89a8f23455d062b8604c1aa6ea4--