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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Storage NYC 2019-01-14, Storage NYC 2019-01-28
    • 0

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: