Skip to content

Commit cef8f6d

Browse files
committed
remove blockcache size
1 parent 8b01d37 commit cef8f6d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

pkg/store/badger_options.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import (
77
)
88

99
const (
10-
// DefaultBadgerBlockCacheSize bounds Badger's block cache off-heap usage.
11-
// This node is primarily append/sync-oriented, so prefer a conservative
12-
// default over maximizing read cache hit rate.
13-
DefaultBadgerBlockCacheSize int64 = 128 << 20 // 128 MiB
1410
// DefaultBadgerIndexCacheSize bounds Badger's table index and bloom filter
1511
// cache to avoid growth with chain length.
1612
DefaultBadgerIndexCacheSize int64 = 256 << 20 // 256 MiB
@@ -23,7 +19,6 @@ func BadgerOptions() *badger4.Options {
2319

2420
// Bound Badger-owned caches explicitly instead of inheriting a large block
2521
// cache and an unbounded index cache from the upstream defaults.
26-
opts.Options = opts.WithBlockCacheSize(DefaultBadgerBlockCacheSize)
2722
opts.Options = opts.WithIndexCacheSize(DefaultBadgerIndexCacheSize)
2823
// Disable conflict detection to reduce write overhead; ev-node does not rely
2924
// on Badger's multi-writer conflict checks for correctness.

0 commit comments

Comments
 (0)