Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mongodb map reduce tutorial [duplicate]

Possible Duplicate:
How do I use Map/Reduce in MongoDB?

I have seen the MongoDb presentation for the new aggregation framework. There is a presentation, progressive examples etc...

Do you know something similar for map/reduce under MongoDB ?

I haven't found yet...

like image 490
hotips Avatar asked Feb 18 '12 00:02

hotips


3 Answers

Check mongodb cookbook, you can see lot of map-reduce examples with good explanations.

Also check out my answer to other question in SO about mongo map reduce for more info.

like image 186
RameshVel Avatar answered Oct 18 '22 20:10

RameshVel


This explain clarify map reduce for me: Yet another MongoDB Map Reduce tutorial

like image 3
ulima69 Avatar answered Oct 18 '22 21:10

ulima69


Check the documentation of map reduce for MongoDB. You find there a lot of examples.

The general form for mapReduce is this:

db.collection.mapReduce(
  <mapfunction>,
  <reducefunction>,
  {
      out: <collection>,
      query: <document>,
      sort: <document>,
      limit: <number>,
      finalize: <function>,
      scope: <document>,
      jsMode: <boolean>,
      verbose: <boolean>
  }
);
like image 1
Ionică Bizău Avatar answered Oct 18 '22 21:10

Ionică Bizău