Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1138

Array.sum should sum all fields in Array of objects.

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • JavaScript
    • None
    • Fully Compatible

    Description

      If we implement in C++ we may get huge gain in MR perf.

      example

      Array.sum([

      {a:5, b:2}

      ,

      {a:5, b:4, c:1}

      ]) ==

      {a:10, b:6, c:1}

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: