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:
parent
32ea060e99
commit
ecc1d94b3a
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user