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

Background index builds should batch collection scan reads and inserts into the index

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Storage NYC 2019-01-14, Storage NYC 2019-01-28
    • 0

      For every single document in a collection, background index builds retrieve a document, call saveState() (which resets the cursor) and restoreState() (which repositions it) after every single insert.

      It would be more efficient to batch reads on the collection and inserts into the index so the read cursors are reset less often.

      If we want to take advantage of read_once cursors, this will work around having the read the same page into cache when there are multiple documents in each page.

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

              Created:
              Updated:
              Resolved: