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

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

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

      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:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: