Avoid cloning the SBE tree inside the plan cache mutex

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.0.0-rc2, 6.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v6.0
    • QO 2022-04-04, QO 2022-04-18, QO 2022-05-02
    • 15
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      • A cached SBE plan is more expensive to clone than the contents of the classic plan cache.
      • Incurring this expense while holding the lock has been shown to cause additional contention for the mutex in our multi-threaded benchmarks.
      • We can experiment with cloning after dropping the lock by using std::shared_ptr.

            Assignee:
            Ruoxin Xu
            Reporter:
            Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: