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

Simple implementation of data structures that form the key and value types for the sbe::PlanCache

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: Query Planning
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      QE 2021-09-06

      Description

      One of the first things we need to do is to have a representation of the plan cache key and value used for the sbe::PlanCache. This task should accomplish the following:

      • Introduce a stub sbe::PlanCacheKey type. It can be a very simple placeholder like it is in the prototype branch.
      • Introduce the sbe::CachedSbePlan type. This is a struct-like type which holds the SBE plan stage tree as well as the PlanStageData.
      • Add the ability to clone the PlanStageData. We will need to be able to clone this object both when creating a new SBE plan cache entry, and when recovering an SBE plan from the cache.

      Adding the ServiceContext decoration can be done under a separate ticket.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ruoxin.xu Ruoxin Xu
              Reporter:
              david.storch David Storch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: