Enable query stats for updates for timeseries updates

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

      Timeseries updates do a rewrite of the query and modifier field of the input update request. This is true for both legacy and viewless timeseries collections. Our current query stats update system would record the parsed update after the rewrite on mongod which is not what we want, so we skip recording query stats for now.

      We should record the initial update that the user gave. This will make sure the queryShapeHash matches for nodes that don't know the collection is a timeseries collection (and don't do the rewrite) and those that do the timeseries rewrite (see TODOs in query_shape_hash_stability.yml). The queryShapeHash should also match on mongos and on mongod.

      One potential way to do this would be to parse the original update request, and then modify the update with timeseries rewrites, and then parse the update again for actual execution similar to what we currently do for views on find/agg. 

            Assignee:
            Unassigned
            Reporter:
            Erin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: