Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db: refactor disk usage estimate using range annotations #3848

Merged

Commits on Aug 26, 2024

  1. 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: cockroachdb#3793
    anish-shanbhag committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    01e075a View commit details
    Browse the repository at this point in the history