Core Server
  1. Core Server
  2. SERVER-2517

Allow mapReduce to create full documents

    Details

    • Backwards Compatibility:
      Fully Compatible
    • # Replies:
      48
    • Last comment by Customer:
      true

      Description

      This is a follow up to a support thread: http://groups.google.com/group/mongodb-user/browse_thread/thread/7e1f16c81940c24b

      Please allow mapReduce jobs to optionally return full documents instead of placing the result into the value field.

      The _id of the documents would be the reduction key, but the returned value from reduce (or finalize) would be required to be a hash. This makes working with a permanent collection generated by a map/reduce job much nicer.

      I suggest that a new out option be added:

      out:

      {document: 1}

        Issue Links

          Activity

          Hide
          Ricardo Oliveira
          added a comment -

          +1 and generally a callback function that will allow to transform both the key and the value

          Show
          Ricardo Oliveira
          added a comment - +1 and generally a callback function that will allow to transform both the key and the value
          Hide
          Mohammad Rafi
          added a comment -

          +1

          Show
          Mohammad Rafi
          added a comment - +1
          Hide
          Vincent
          added a comment -

          Can't believe it can't be done already... through the finalize function, it would be SO easy...

          Show
          Vincent
          added a comment - Can't believe it can't be done already... through the finalize function, it would be SO easy...
          Hide
          Jeff Whelpley
          added a comment -

          +1 There are so many uses for this functionality if it existed. At a high level, it makes it much easier to synchronize de-normalized data.

          Show
          Jeff Whelpley
          added a comment - +1 There are so many uses for this functionality if it existed. At a high level, it makes it much easier to synchronize de-normalized data.
          Hide
          Kay Fleischmann
          added a comment -

          +1 Definitly a must have.

          Show
          Kay Fleischmann
          added a comment - +1 Definitly a must have.

            Dates

            • Created:
              Updated:
              Days since reply:
              6 weeks, 2 days ago
              Date of 1st Reply: