Skip to content

Commit

Permalink
internal/manifest: Add L0SubLevels methods to pick compactions
Browse files Browse the repository at this point in the history
This change adds methods to L0SubLevels to help pick, score,
and generate L0 -> LBase, and L0 -> L0 compactions, based on
information captured in the data structure about L0 sublevels.

These functions will be called from in compaction.go and
compaction_picker.go in a future change.

Also adds associated datadriven unit tests, and a benchmark.

Covers a large part of cockroachdb#563. Thanks Sumeer for his work, most of
this was written by him.
  • Loading branch information
itsbilal committed May 1, 2020
1 parent 687056d commit 08625c3
Show file tree
Hide file tree
Showing 3 changed files with 1,925 additions and 51 deletions.
Loading

0 comments on commit 08625c3

Please sign in to comment.