Doing point queries on the ts field is slow in the oplog because the oplog does not have any indexes. WT has a hack that allows it to do binary search on the ts field but is only enabled when the query predicate has top level $gt/$gte.
This is needed by retryable writes in order to do fast lookup on oplog entries when traversing through the write history within a transaction.
- is depended on by
-
SERVER-31863 Make TransactionHistoryIterator use oplogHack
- Closed
- is duplicated by
-
SERVER-31687 Missing minvalid in sync source cause oplog full table scan all the time
- Closed
- is related to
-
SERVER-13566 Using the OplogReplay flag with extra predicates can yield incorrect results
- Closed