文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Aggregation(Chapter 6 of MongoDB The Definitive Guild)

Aggregation(Chapter 6 of MongoDB The Definitive Guild)

时间:2010-10-12  来源:Ray Z

  MapReduce is the Uzi of aggregation tools. Everything described with count, distinct, and group can be done with MapReduce, and more. It is a method of aggregation that can be easily parallelized across multiple servers. It splits up a problem, sends chunks of it to different machines, and lets each machine solve its part of the problem. When all of the machines are finished, they merge all of the pieces of the solution back into a full solution.   MapReduce has a couple of steps. It starts with the map step, which maps an operation onto every document in a collection. That operation could be either “do nothing” or “emit these keys with X values.” There is then an intermediary stage called the shuffle step: keys are grouped and lists of emitted values are created for each key. The reduce takes this list of values and reduces it to a single element. This element is returned to the shuffle step until each key has a list containing a single value: the result.
相关阅读 更多 +
排行榜 更多 +
火箭炮小子中文版

火箭炮小子中文版

冒险解谜 下载
火箭炮小子无限金币版

火箭炮小子无限金币版

策略塔防 下载
家庭清洁大师

家庭清洁大师

休闲益智 下载