Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 7324 invoked from network); 21 Oct 2008 08:22:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 08:22:19 -0000 Received: (qmail 32002 invoked by uid 500); 21 Oct 2008 08:22:20 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 31974 invoked by uid 500); 21 Oct 2008 08:22:20 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 31963 invoked by uid 99); 21 Oct 2008 08:22:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 01:22:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ytakanoster@gmail.com designates 74.125.44.154 as permitted sender) Received: from [74.125.44.154] (HELO yx-out-1718.google.com) (74.125.44.154) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 08:21:09 +0000 Received: by yx-out-1718.google.com with SMTP id 36so470689yxh.0 for ; Tue, 21 Oct 2008 01:21:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=wuW+nePmgHq01xygutWVkaDFS20NiL4sL8eg5nAb178=; b=gQ2UYEu+OeSETJjToTo1+pvyOp6lkxiESqO0mCnnLi8KfoOnhOfeazlC05F1yZpJTz xsCXgmfKKNHr2shK8uBhUVPh39Uysif5fRkl463trtMC4a/ndX99Cd2+he4SmiMYfEPJ vg6X6ZfIgkVh12rB5JAzxV42ATmBHzfPVaYaY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=hfbRPwx90k6zTnIUDu5zXsFE1+/sdYYRQBfY6hId8CSwNFR6s/qxtFrkMH50hoOJKp jzVL+HI0ezIG0nksINYVWY0UVTDnQ7ubP/qkITL+1nqF3AYZ+bXdNENPiKpUTXsUYR0B a/8W6k49IO6Ph6GyI53Ixcy0FrSwJE2/MtSL4= Received: by 10.65.93.19 with SMTP id v19mr6162905qbl.36.1224577297657; Tue, 21 Oct 2008 01:21:37 -0700 (PDT) Received: by 10.64.149.3 with HTTP; Tue, 21 Oct 2008 01:21:37 -0700 (PDT) Message-ID: Date: Tue, 21 Oct 2008 17:21:37 +0900 From: "Yuuki Takano" Sender: ytakanoster@gmail.com To: couchdb-user@incubator.apache.org Subject: Re: couchDB gave up building views In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5CB795A1-2DCE-45D5-BBEC-3828AD6928D7@apache.org> X-Google-Sender-Auth: 6afbf7aab601418a X-Virus-Checked: Checked by ClamAV on apache.org So I read a source of couchDB, I understood why my map functions were considered they have bugs. readline/2 function in couch_query_servers.erl reads and waits data from Port connected to the couchjs, and it give up waiting after 5 seconds. This means couchDB cannot build views if couchjs cannot send data in 5 seconds. In my situation, my map functions failed despite it work well when there is a few document because of the reason above. So, I changed hardcoded timeout seconds 5000 to 50000 and reinstall couchDB. Then, my map functions work well. Thank you for your comments. 2008/10/21 Yuuki Takano : > Thank you very much. > >> One, your HTTP request should block until the view returns. If the >> HTTP request times out you can just try again, or notify your user, or >> what ever is appropriate. > > OK. > I underdtand, tank you! > I'll try it later. > > >> The error that you received about the timeout in couch means your map >> functions have a bug that is preventing them from returning data to >> couch. Aftering fixing that issue, things should work smoothly. > > My map functions work well when there is a few document. > > > >> I'm guessing you are on an old version of Erlang. Build erlang from the latest source at erlang.org > > Thank you, but I use the earliest version of Erlang (v5.6.4). > > > 2008/10/20 Damien Katz : >> I'm guessing you are on an old version of Erlang. Build erlang from the >> latest source at erlang.org >> >> -Damien >> >> >> On Oct 20, 2008, at 9:07 AM, Yuuki Takano wrote: >> >>> Hi there, >>> >>> I inserted 20,000 documents into couchDB, and looked up views of it. >>> However , couchDB gave up building views because of timed out. >>> >>> The views were quite simple, such as >>> >>> function(doc) { >>> if (doc.type == 'vote') { >>> emit([doc.service, doc.user, doc.item], doc); >>> } >>> } >>> >>> It seems that couchDB does not support many documents at this version >>> (0.8.1). >>> Is that right? >>> >>> Regards, >>> >>> -- Yuuki Takano >> >> >