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

Partial statistics pipeline

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QO 2022-07-25, QO 2022-08-08, QO 2022-08-22, QO 2022-09-05, QO 2022-09-19, QO 2022-10-03

      Generate an internal SBE command for statistics analysis which runs the equivalent of 

       

       

      db.coll.aggregate( [
         { $project: {val : path} },
         { $_analyzeInternal: {} },
         { $merge: ... }
      ]);
      

       
      _analyzeInternal will be implemented in a follow-on ticket. For now it can simply consume values and emit an empty document at the end of the stream.

      The $merge is to replace (or insert) the value in the stats collection with the newly calculated value. Note that this requires a unique index on "path" which should be workable.

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            joel.redman@mongodb.com Joel Redman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: