Investigate changes in SERVER-87529: Consider adding index used to plan summary for express path

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Done
    • Priority: Major - P3
    • 1.43.6
    • Affects Version/s: None
    • Component/s: Explain
    • Not Needed
    • Developer Tools

      Original Downstream Change Summary

      In 8.0, the query team is introducing a fast path for query optimization and execution called the "express" path. The express path is an optimization for a limited set of queries that can use simple index scan or clustered index scan plans. For example, many "IDHACK"-eligible queries (point lookups on the _id index) will now use the express path instead.

      In explain output and slow query logs, these new kinds of query plans will show up as "EXPRESS_IXSCAN" and "EXPRESS_CLUSTERED_IXSCAN" instead of "IXSCAN", "CLUSTERED_IXSCAN" and "IDHACK".

      For example, the winningPlan for express plans will look similar to:

      winningPlan: {
          stage: "EXPRESS_IXSCAN",
          keyPattern: { _id: 1 },  // example 
          indexName: "_id_",    // example
          ...
      }
      

      Description of Linked Ticket

      Right now the planSummary simply says "EXPRESS", but it could be more like "EXPRESS {a: 1}"

              Assignee:
              Basit Chonka
              Reporter:
              Backlog - Core Eng Program Management Team
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: