view source
Understanding MapReduce in MongoDB, with Node.js, PHP (and Drupal)
MongoDB’s query language is good at extracting whole documents or whole elements of a document, but on its own it can’t pull specific items from deeply embedded arrays, or calculate relationships between data points, or calculate aggregates. To do that, MongoDB uses an implementation of the MapReduce methodology to iterate over the dataset and extract the desired data points.
Advertisement