Skip to content

Commit

Permalink
don't keep L0 in memory for Badger under low mem conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
DocSavage committed Dec 5, 2019
1 parent ad05464 commit f79ceff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/badger/lowmem.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ func getOptions(path string, config dvid.Config) (*badger.Options, error) {
opts = opts.WithValueLogFileSize(16 << 20) // 16 MB value log file
opts = opts.WithMaxCacheSize(8 << 20)
opts = opts.WithMaxTableSize(8 << 20)
opts = opts.WithKeepL0InMemory(false)
return &opts, nil
}

0 comments on commit f79ceff

Please sign in to comment.