Skip to content

Commit c92f3a9

Browse files
authored
Problem: pinL0FilterAndIndexBlocksInCache is not enabled (#1530)
1 parent a921f76 commit c92f3a9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* (store) [#1511](https://github.com/crypto-org-chain/cronos/pull/1511) Upgrade rocksdb to `v9.2.1`.
77
* (e2ee) [#1513](https://github.com/crypto-org-chain/cronos/pull/1513) Add pubkey subcommand to e2ee cli.
88
* (store) [#1526](https://github.com/crypto-org-chain/cronos/pull/1526) Cache index/filters in rocksdb application.db to reduce ram usage.
9+
* (store) [#1529](https://github.com/crypto-org-chain/cronos/pull/1529) Enable pinL0FilterAndIndexBlocksInCache.
910

1011
*Jul 7, 2024*
1112

cmd/cronosd/opendb/opendb_rocksdb.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func NewRocksdbOptions(opts *grocksdb.Options, sstFileWriter bool) *grocksdb.Opt
113113
// reduce memory usage
114114
bbto.SetCacheIndexAndFilterBlocks(true)
115115
bbto.SetPinTopLevelIndexAndFilter(true)
116+
bbto.SetPinL0FilterAndIndexBlocksInCache(true)
116117

117118
// hash index is better for iavl tree which mostly do point lookup.
118119
bbto.SetDataBlockIndexType(grocksdb.KDataBlockIndexTypeBinarySearchAndHash)

0 commit comments

Comments
 (0)