-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: refactor disk usage estimate using range annotations
This change updates `db.EstimateDiskUsage` to use range annotations to estimate the disk usage of a key range. This should improve the performance of repeated disk usage estimates for similar or identical key ranges. At the Cockroach layer we use `db.EstimateDiskUsage` in a few places, most notably when [computing MVCC span stats](https://github.com/cockroachdb/cockroach/blob/master/pkg/server/span_stats_server.go#L217). Informs: #3793
- Loading branch information
1 parent
3419a64
commit b10bfd5
Showing
10 changed files
with
418 additions
and
174 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
Oops, something went wrong.