MongoDB MapReduce - Emit one key/one value doesnt call reduce
问题 So i'm new with mongodb and mapreduce in general and came across this "quirk" (or atleast in my mind a quirk) Say I have objects in my collection like so: {'key':5, 'value':5} {'key':5, 'value':4} {'key':5, 'value':1} {'key':4, 'value':6} {'key':4, 'value':4} {'key':3, 'value':0} My map function simply emits the key and the value My reduce function simply adds the values AND before returning them adds 1 (I did this to check to see if the reduce function is even called) My results follow: {'