【发布时间】:2010-09-15 23:30:08
【问题描述】:
我正在使用 Ruby 代码从 Mongoid 返回的数组中计算总和。
但也许使用 Map/Reduce 会更快,除了我在 mongoid.org 和 Google 上没有看到任何 Map Reduce 文档
map reduce site:mongoid.org
也不给出任何结果。 (或使用MapReduce 或Map/Reduce)
MongoDB 网站上有文档
map reduce site:mongodb.org
但也需要将 Map Reduce 与 Mongoid 一起使用。
【问题讨论】:
标签: ruby-on-rails mongodb mapreduce mongoid