Map-Reduce
mapreduce类似于mysql中的group by函数,提供分组计算功能。mongodb官方描述如下:
Map-reduce is a data processing paradigm for condensing large volumes of data into useful aggregatedresults. For map-reduce operations, MongoDB provides the mapReduce database command.
Consider the following map-reduce operation: