Avoid WriteUnitOfWork in index build collection scan loop

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.6, 4.4.0-rc1, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.4
    • Execution Team 2020-04-20
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This WUOW is not necessary for hybrid index builds because we insert all keys into the external sorter, which is not part of the storage engine.

      We could improve index build performance by not having to open and close a storage transaction every iteration.

      This fixes a perf regression introduced by SERVER-44577.

              Assignee:
              Louis Williams
              Reporter:
              Louis Williams
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: