diff --git a/internal/kv/rocksdb/rocksdb_kv.go b/internal/kv/rocksdb/rocksdb_kv.go index ea7a818751..1d4b5a50ec 100644 --- a/internal/kv/rocksdb/rocksdb_kv.go +++ b/internal/kv/rocksdb/rocksdb_kv.go @@ -39,6 +39,7 @@ func NewRocksdbKV(name string) (*RocksdbKV, error) { } bbto := gorocksdb.NewDefaultBlockBasedTableOptions() bbto.SetCacheIndexAndFilterBlocks(true) + bbto.SetPinL0FilterAndIndexBlocksInCache(true) bbto.SetBlockCache(gorocksdb.NewLRUCache(LRUCacheSize)) opts := gorocksdb.NewDefaultOptions() opts.SetBlockBasedTableFactory(bbto)