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

Aggregation framework - operator for adding vectors/array

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible

      Description

      It would be very useful to be able to do operations on arrays as if they were vectors, in particular to add them. So this would add the 0th entry of the arrays in the pipeline and then the 1st, 2nd, etc. The result will be one document with an array with each entry being the sum of all the items in that same position in the source documents.

      This can be useful in doing risk calculations in financial services.

      This could be done today with unwinding which doesn't perform as well as this would.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team (Inactive)
              Reporter:
              matt.kalan Matt Kalan
              Participants:
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: