Make $queryStats take advantage of QueryShape (and its hash) being always computed

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As part of PM-412, we agreed to compute QueryShape (and its hash) for every query, apart from IDHACK. This work will be done in SERVER-87018.

      Before this, we first were checking if QueryStatsKey has already been computed and if so, use it to compute the QueryShapeHash.

      Now that QueryShape and its hash will be always computed, the check has to be done by the $queryStats prior to query registration. This would also imply that query settings lookup has to be perform before query registration by the $queryStats in order to take advantage of this.

      Since additional computation will be done for all queries (apart from IDHACK) and the possible regressions will be fixed before 8.0 release, work done in SERVER-87018 could lower the impact of $queryStats being enabled and potentially lead to increasing the sampling rate if desired 

              Assignee:
              [DO NOT USE] Backlog - Query Integration
              Reporter:
              Denis Grebennicov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: