Add value log file size back

This commit is contained in:
Patrick O'Grady 2020-10-15 15:15:25 -07:00
parent cc0de8ce8f
commit 37264a71c7
No known key found for this signature in database
GPG key ID: 8DE11C985C0C8D85

View file

@ -124,6 +124,10 @@ func defaultBadgerOptions(
// Use an extended table size for larger commits.
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
// an existing memtable is filled up. This option determines how many
// memtables should be kept in memory.