incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <>
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:
(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?

View raw message