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

Remove unnecessary PlanExecutor saveState/restoreState for background index builds

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Storage NYC 2018-11-19

      The code in MultiIndexBlockImpl here that saves and restores the plan executor is unnecessary. In the case of yielding, PlanYieldPolicy::yield already saves and restores. In the case of WCEs, the try-catch block also handles saving and restoring. Removing can potentially speed up background index builds by 20%.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: