incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Davis" <paul.joseph.da...@gmail.com>
Subject Re: couchDB gave up building views
Date Mon, 20 Oct 2008 13:51:55 GMT
Yeah, that means your map function took too long to complete a map
operation. (5 seconds IIRC). If your map functions are taking that
long you should reexamine them. (That's per group of docs sent, not
the entire operation mind you)

Paul

On Mon, Oct 20, 2008 at 9:47 AM, Yuuki Takano <ytakano@jaist.ac.jp> wrote:
> Thank you for your quick response.
>
> When I looking up views, the process "couchjs" is running and takes
> 90% of CPU resources.
> However, that process stop after receiving following response.
>
> {"error":"error","reason":"{{nocatch,{map_process_error,\"map function
> timed out\"}},
>  [{couch_query_servers,readline,2},
>  {couch_query_servers,read_json,1},
>  {couch_query_servers,prompt,2},
>  {couch_query_servers,'-rereduce\/3-fun-0-',3},
>  {lists,zipwith,3},\n  {couch_query_servers,rereduce,3},
>  {couch_view,'-init_group\/4-fun-0-',4},
>  {couch_btree,'-write_node\/3-lc$^0\/1-0-',3}]}"}
>
> So, I think couchDB gave up building views despite it had to continue.
>
>
> 2008/10/20 Paul Davis <paul.joseph.davis@gmail.com>:
>> Also, i think there's work on a patch to be able to query couch on the
>> status of view generation. If not, sorry to get your hopes up.
>>
>> Paul
>>
>> On Mon, Oct 20, 2008 at 9:17 AM, Ed Finkler <funkatron@gmail.com> wrote:
>>> What's probably timing out is your http request, not the view
>>> building. Views with a large number of docs can take a while to build
>>> initially, but the build process will continue even if your request
>>> times out. Typically I keep an eye on the cpu usage on the couchjs
>>> process(es) to see when it calms down – that usually means the build
>>> is done.
>>>
>>> --
>>> Ed Finkler
>>> http://funkatron.com
>>> AIM: funka7ron
>>> ICQ: 3922133
>>> Skype: funka7ron
>>>
>>>
>>> On Mon, Oct 20, 2008 at 9:07 AM, Yuuki Takano <ytakano@jaist.ac.jp> 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 <ytakano@jaist.ac.jp>
>>>>
>>>
>>
>

Mime
View raw message