-
Type: Improvement
-
Resolution: Gone away
-
Priority: 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.
- depends on
-
SERVER-37270 Remove foreground index build functionality
- Closed
- is related to
-
SERVER-37269 Use read_once cursors to do foreground index build collection scans
- Closed