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

Convert SolutionCacheData to a variant

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution

      Following SERVER-90492, SolutionCacheData will be 8 bytes larger because a unique_ptr was added to allow for caching plans which use VirtualScanNodes. This facility is test only, so ideally, we wouldn't pay the cost of a larger struct in the general case.

      As such, this ticket proposes converting SolutionCacheData to a variant. You can imagine:

      • having one type for each type of data access plan (CollScan, Ixscan, or VirtualScan)
      • Having one type for caching plans in production (collscan, ixscan) or for test only (virtual scan)

            Assignee:
            Unassigned Unassigned
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: