forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
84881: startupmigrations: check for migration completion optimistically on a follower r=ajwerner a=ajwerner `INCONSISTENT` reads can be performed on followers. Most always these startup migrations are complete. We can avoid a wide-area round-trip by checking optimistically with a follower before doing a consistent read. Release note: None 86111: storage: disable range key masking for `MVCCGet` r=tbg a=erikgrinaker **storage: fix range key detection in `pebbleMVCCScanner.get()`** `RangeKeyChanged()` did not appear to fire properly when `MVCCGet` was changed to disable range key masking and the prefix iterator was reused from the batch (as seen by `BenchmarkMVCCGet` in the `batch=true` case). This patch adds a workaround in `pebbleMVCCScanner.get()` that checks `HasPointAndRange()` after seeking the iterator rather than before. Release note: None **storage: disable range key masking for `MVCCGet`** This patch disables range key masking for `MVCCGet`, and disallows using it with prefix iterators in general, due to the significant performance overhead. ``` name old time/op new time/op delta MVCCGet_Pebble/batch=true/versions=1/valueSize=8/numRangeKeys=0-24 3.31µs ± 1% 2.48µs ± 1% -24.97% (p=0.000 n=10+9) MVCCGet_Pebble/batch=true/versions=1/valueSize=8/numRangeKeys=1-24 6.72µs ± 1% 3.15µs ± 1% -53.12% (p=0.000 n=10+10) MVCCGet_Pebble/batch=true/versions=1/valueSize=8/numRangeKeys=100-24 78.5µs ± 2% 75.1µs ± 2% -4.41% (p=0.000 n=10+10) MVCCGet_Pebble/batch=true/versions=10/valueSize=8/numRangeKeys=0-24 4.19µs ± 2% 3.70µs ± 0% -11.51% (p=0.000 n=10+10) MVCCGet_Pebble/batch=true/versions=10/valueSize=8/numRangeKeys=1-24 9.22µs ± 1% 7.25µs ± 3% -21.39% (p=0.000 n=9+10) MVCCGet_Pebble/batch=true/versions=10/valueSize=8/numRangeKeys=100-24 81.6µs ± 1% 79.0µs ± 1% -3.22% (p=0.000 n=10+10) ``` Resolves cockroachdb#86086. Release note: None Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Erik Grinaker <[email protected]>
- Loading branch information
Showing
7 changed files
with
98 additions
and
139 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
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
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
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
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
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
Oops, something went wrong.