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

Expose settings of query knobs in agg explain output

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Query Optimization 2021-02-22, Query Optimization 2021-03-08

      Description

      Various agg stages are subject to internal limits, defined as setParameters in query_knobs.idl. Alex Bevilacqua would find it useful if these values were reported in agg explain. Since these are static settings rather than runtime stats, I think they would be reported at any explain verbosity level ("queryPlanner", "executionStats", or "allPlansExecution").

      In particular, exposing at least following would be useful:

      • internalQueryFacetBufferSizeBytes
      • internalLookupStageIntermediateDocumentMaxSizeBytes
      • internalDocumentSourceGroupMaxMemoryBytes

      Before scheduling this ticket, we should choose the exact set of knobs we want to expose in explain, and we should choose the names with which we want to expose them.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timour.katchaounov Timour Katchaounov
              Reporter:
              david.storch David Storch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: