Move memory tracking from QO to QE stages

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • QE 2025-09-01, QE 2025-09-15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As a part of SPM-4106, we split DocumentSources into QO and QE parts. Memory tracking is only relevant to the QE part, so we should move the relevant data members to the corresponding agg::Stage subclass.

      If stages have unit tests that require alternative maxAllowedMemoryUsageBytes settings, this can be done by using RAIIServerParameterControllerForTest scope object instead of passing it as parameter.

      As a part of this ticket, we need to move the remains memory-tracking from QO to QE stage (for instance from DocumentSourceGroup and DocumentSourceSort).

            Assignee:
            Unassigned
            Reporter:
            Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: