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

Expose settings of query knobs in agg explain output

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Fully Compatible
    • Query Optimization 2021-02-22, Query Optimization 2021-03-08

      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.

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

              Created:
              Updated:
              Resolved: