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

$internalConstructStats should accept value to be processed directly instead of hardcoding to "$val"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization

    Description

      The $internalConstructStats accumulator currently accepts the full root document and expects a hardcoded field "val" to contain the actual data to accumulate. It would be better (and more inline with other accumulators) to have the desugaring phase handle this and pass the value directly to the accumulator, so something like this:

       $_internalConstructStats: {
          val: "$val",
          sampleRate: sampleRate
      }
      

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: