-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
ALL
CollectionScan stage is also used for finding documents by _id for clustered collections. In this case the CollectionScan stage is used by setting parameters minRecord and maxRecord of the stage to _id. When the looked up document does not exist, then the stage typically calls seekNear() and next() on the cursor. However, in this scenario, the next() call is redundant. This next() call can be very expensive when the storage engine needs to examine deleted entries that reside between the record returned by seekNear() and the record returned by next().
- duplicates
-
SERVER-62988 Investigate avoiding an extra document fetch on bounded collection scans
- Backlog
- is related to
-
SERVER-66462 Change stream pre-image write performance degrades under certain conditions
- Closed