couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <ryan.ram...@gmail.com>
Subject reduce_overflow_error on map function
Date Thu, 06 May 2010 18:54:01 GMT
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