mirror of https://github.com/milvus-io/milvus.git
Set PinL0FilterAndIndexBlocksInCache to true for rocksdb (#8855)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>pull/8855/merge
parent
e7e481444b
commit
d9115fe78d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue