Reduce badger ValueTreshold to 128

It should significntly size of the LSM index, and thus increase the
performance with bigger datastores

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-10-28 22:17:01 +01:00
parent 32ea060e99
commit ecc1d94b3a
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -32,7 +32,7 @@ func chainBadgerDs(path string, readonly bool) (datastore.Batching, error) {
opts.ReadOnly = readonly
opts.Options = dgbadger.DefaultOptions("").WithTruncate(true).
WithValueThreshold(1 << 10)
WithValueThreshold(128)
return badger.NewDatastore(path, &opts)
}