Skip to content

Commit

Permalink
Put badger in LSM mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aalda committed Feb 26, 2019
1 parent 2e56eeb commit 14f46ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/badger/badger_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func NewBadgerStoreOpts(opts *Options) (*BadgerStore, error) {
bOpts.Dir = opts.Path
bOpts.ValueDir = opts.Path
bOpts.SyncWrites = false
bOpts.ValueThreshold = 1 << 11 // LSM mode

db, err := b.Open(bOpts)
if err != nil {
Expand Down

0 comments on commit 14f46ae

Please sign in to comment.