-
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.
36549: batcheval,bulk: move AddSSTable mvcc stats computation to caller r=dt a=dt This allows a client to include the MVCCStats for the SST when sending an AddSSTable request. If stats are included in a request, the receiving store can use the stapled stats instead of computing them itself. While this is still the same total amount of work, moving it to the client can help when many clients are producing and sending SSTs to the same range, which could then become a bottleneck. Additioanlly, this paves the way to future optimization that could actually reduce the total work done in some cases. While the server, handed an arbitrary SST, has to assume that it can contain anything and has to run the full recompute on it, in some cases, some clients may potentially be able to make simplifying assumptions based on what they are putting in their SST, and thus be able to compute or derive stats more cheapy than running all of `ComputeStatsGo`. Giving the client the option to pass its own stats provides this flexibility. Release note: None. Co-authored-by: David Taylor <[email protected]>
- Loading branch information
Showing
13 changed files
with
1,097 additions
and
885 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.