incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Helmberger <sven.helmber...@gmx.de>
Subject Re: Random issue with reduce
Date Sat, 28 Mar 2009 11:10:02 GMT
Nicolas Clairon schrieb:
> Nop !
> 
> Here is the test  map function :
> 
> function(doc){
>   emit("key", 1);
> }
> 
> and the reduce function:
> 
> function(key, values){
>   return values;
> }
> 
> That work well for a large usecase but sometime, I get this strange behavior...
> 

What purpose does the reduce function have? it doesn't really reduce or 
combine anything so it seems like it could just as well be left out.

Regards,
Sven Helmberger

Mime
View raw message