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

Use SortPattern instead of raw BSON in query planner

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.4
    • None
    • Querying
    • Fully Compatible
    • Query 2019-12-30, Query 2020-02-24, Query 2020-03-09

    Description

      Now that SortPattern is exposed, and we have a type-safe representation of a sort pattern, we should use it in the query planner.

       

      There are many places where we use raw BSON in the planner.

       

      This work would involve creating a SortPattern as part of canonicalization, and hanging it off of the CanonicalQuery. Then, updating all callers of QueryRequest::getSort() in the query planner to use the sort pattern instead.

      Attachments

        Activity

          People

            svilen.mihaylov@mongodb.com Svilen Mihaylov (Inactive)
            ian.boros@mongodb.com Ian Boros
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: