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

Remove unnecessary PlanExecutor saveState/restoreState for background index builds

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Storage
    • None
    • Storage NYC 2018-11-19

    Description

      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%.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: