-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
By accident I had a wrong reduce method:
map = function()
reduce = function(key, vals) { var sum = 0; for (var val in vals)
{ sum += val; }return sum; }
The rows in collection actually have only 1 entry per this.ln.
If using inline the results look like:
If output goes to collection, it's
> db.output.find(
)
{ "_id" : "zzucdarlws", "value" : "00" }It looks like for inline, the reduce function is never called, whereas it's called once for the collection.
- is related to
-
SERVER-10736 Modify MapReduce to "map, shuffle, reduce", and always take lists on the reducer input
- Closed