Add value log file size back
This commit is contained in:
parent
cc0de8ce8f
commit
37264a71c7
1 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,10 @@ func defaultBadgerOptions(
|
||||||
// Use an extended table size for larger commits.
|
// Use an extended table size for larger commits.
|
||||||
opts.MaxTableSize = storage.DefaultMaxTableSize
|
opts.MaxTableSize = storage.DefaultMaxTableSize
|
||||||
|
|
||||||
|
// Smaller value log sizes means smaller contiguous memory allocations
|
||||||
|
// and less RAM usage on cleanup.
|
||||||
|
opts.ValueLogFileSize = storage.DefaultLogValueSize
|
||||||
|
|
||||||
// To allow writes at a faster speed, we create a new memtable as soon as
|
// To allow writes at a faster speed, we create a new memtable as soon as
|
||||||
// an existing memtable is filled up. This option determines how many
|
// an existing memtable is filled up. This option determines how many
|
||||||
// memtables should be kept in memory.
|
// memtables should be kept in memory.
|
||||||
|
|
Loading…
Reference in a new issue