From 37264a71c7a4e6ce86c6898e04e2773e7c457ca3 Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Thu, 15 Oct 2020 15:15:25 -0700 Subject: [PATCH] Add value log file size back --- indexer/indexer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/indexer/indexer.go b/indexer/indexer.go index 1ff222c..e6aeba7 100644 --- a/indexer/indexer.go +++ b/indexer/indexer.go @@ -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.