couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Cohnen <sebastiancoh...@googlemail.com>
Subject Re: reduce_overflow_error on map function
Date Fri, 07 May 2010 06:52:44 GMT
is there any other reduce function in this design document?

On 06.05.2010, at 20:54, Ryan Ramage wrote:

> I have a function like the following (which is 'by the book' in the
> Finding Your Data With Views chapter)
> 
> function(doc) {
>  if(doc.tags.length > 0) {
>    for(var idx in doc.tags) {
>      emit(doc.tags[idx], null);
>    }
>  }
> }
> 
> There is no reduce function.
> But when I run on a very small data set (hundreds) I get the following error:
> 
> {"error":"reduce_overflow_error","reason":"Reduce output must shrink
> more rapidly: Current output:
> '[[[\"Last_A8Sj9sj\",\"Person_c7114514770d9cf2a28fb5732a1a1c32\",\"Audio_Post_Processing\",\"Calgary\",\"Idea\"'...
> (first 100 of 452 bytes)"}
> 
> 
> Each doc has no duplicate tags, and no more than 3 tags. I am running
> couchdb 0.11 on windows.
> 
> Any ideas?


Mime
View raw message