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...
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.
This explain clarify map reduce for me: Yet another MongoDB Map Reduce tutorial
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>
}
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With