Skip to content

Commit

Permalink
options: enable read based compactions
Browse files Browse the repository at this point in the history
This change enables read based compactions by default and sets the read
sampling threshold. This is based on the findings in
#29.
  • Loading branch information
aadityasondhi committed Dec 22, 2020
1 parent 4c4e043 commit 3ebb387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,8 @@ func (o *Options) EnsureDefaults() *Options {
if o.Experimental.ReadCompactionRate == 0 {
o.Experimental.ReadCompactionRate = 16000
}
if o.Experimental.ReadSamplingMultiplier != 0 {
o.Experimental.ReadSamplingMultiplier = 0
if o.Experimental.ReadSamplingMultiplier == 0 {
o.Experimental.ReadSamplingMultiplier = 1
}

o.initMaps()
Expand Down

0 comments on commit 3ebb387

Please sign in to comment.