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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Query Planning
    • None
    • Fully Compatible
    • QE 2021-09-06

      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.

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

              Created:
              Updated:
              Resolved: