Skip to content

Commit 0f104b9

Browse files
committed
udpate cache size
1 parent 4f18391 commit 0f104b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/kvstore/badger.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ func NewBadgerKVStore(config BadgerConfig) (*BadgerKVStore, error) {
4040
opts := badger.DefaultOptions(config.DBPath).
4141
WithCompression(options.ZSTD).
4242
WithEncryptionKey(config.EncryptionKey).
43-
WithIndexCacheSize(128 << 20).
44-
WithBlockCacheSize(256 << 20).
43+
WithIndexCacheSize(16 << 20).
44+
WithBlockCacheSize(32 << 20).
4545
WithSyncWrites(true).
4646
WithVerifyValueChecksum(true). // validate every value-log entry's checksum on read, surfacing corruption instead of masking it
4747
WithCompactL0OnClose(true). // compacts level-0 SSTables on shutdown, reducing startup work and avoiding stalls on open

0 commit comments

Comments
 (0)