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

Avoid cloning the SBE tree inside the plan cache mutex

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      • 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@mongodb.com Ruoxin Xu
            Reporter:
            anton.korshunov@mongodb.com Anton Korshunov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: