We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f18391 commit 0f104b9Copy full SHA for 0f104b9
1 file changed
pkg/kvstore/badger.go
@@ -40,8 +40,8 @@ func NewBadgerKVStore(config BadgerConfig) (*BadgerKVStore, error) {
40
opts := badger.DefaultOptions(config.DBPath).
41
WithCompression(options.ZSTD).
42
WithEncryptionKey(config.EncryptionKey).
43
- WithIndexCacheSize(128 << 20).
44
- WithBlockCacheSize(256 << 20).
+ WithIndexCacheSize(16 << 20).
+ WithBlockCacheSize(32 << 20).
45
WithSyncWrites(true).
46
WithVerifyValueChecksum(true). // validate every value-log entry's checksum on read, surfacing corruption instead of masking it
47
WithCompactL0OnClose(true). // compacts level-0 SSTables on shutdown, reducing startup work and avoiding stalls on open
0 commit comments