Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16702

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

      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:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              6 weeks ago