Skip to content
Snippets Groups Projects
Commit 3740ff9d authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Konstantin Osipov
Browse files

vinyl: add slice size estimate

We use run->info.keys to estimate the size of a new run's bloom filter.
We use run->info.size to trigger range split/coalescing. If a range
contains a slice that spans only a part of a run, we can't use run->info
stats, so this patch introduces the following slice stats: number of
keys (for the bloom filter) and the size on disk (for split/coalesce).
These two counters are not accurate, they are only estimates, because
calculating exact numbers would require disk reads. Instead we simply
take the corresponding run's stat and multiply it by

    slice page count / run page count
parent fccaa3f1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment