-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: Try seeks using nexts, other fast-paths in CheckSSTConflicts
Import cancellations and retries tend to set sstToReqTS and have incoming SSTs where we can expect all keys to have the same timestamp. This allows us to more efficiently skip keys in the engine beyond what range key masking does for us (eg. we don't need to check each individual SST key for conflict with an engine range key). This change takes advantage of that to speed up import retries. It also replaces engine seeks with Next()s as much as possible; the TrySeekUsingNext optimization inside the iterator isn't kicking in as some seeks/nexts are interspersed. Release note: None
- Loading branch information
Showing
1 changed file
with
79 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters