Change ensureQueryShapeHash for PQS for updates on mongos

XMLWordPrintableJSON

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

      Currently, we use ensureQueryShapeHash() to calculate the QSH, store the QSH in opDebug, and return the queryShapeHash to be used for PQS. If there is already a QSH on opDebug, we return that hash. For find/agg this is enough since only one query is run at a time. However, for batched updates, there will be a QSH per update, so ensureQueryShapeHash() should be updated so it will return the QSH for each update in a batch instead of only returning the first one. 

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

              Created:
              Updated:
              Resolved: