Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のクエリをmapreduceまたはMongoMapperまたはMongoIDのジュース関数として再現する方法を知りたいです。
Event.find(:all,:select=>'events.company,SUM(price) as total_price', :group=> 'company',:order => ' total_price DESC, created_at DESC')
MapReduce の基本的なケースです。それに関するドキュメントを見ることができます:
http://www.mongodb.org/display/DOCS/MapReduce