Skip to content

Commit

Permalink
Problem: pinL0FilterAndIndexBlocksInCache is not enabled (#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe authored Jul 26, 2024
1 parent a921f76 commit c92f3a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* (store) [#1511](https://github.com/crypto-org-chain/cronos/pull/1511) Upgrade rocksdb to `v9.2.1`.
* (e2ee) [#1513](https://github.com/crypto-org-chain/cronos/pull/1513) Add pubkey subcommand to e2ee cli.
* (store) [#1526](https://github.com/crypto-org-chain/cronos/pull/1526) Cache index/filters in rocksdb application.db to reduce ram usage.
* (store) [#1529](https://github.com/crypto-org-chain/cronos/pull/1529) Enable pinL0FilterAndIndexBlocksInCache.

*Jul 7, 2024*

Expand Down
1 change: 1 addition & 0 deletions cmd/cronosd/opendb/opendb_rocksdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func NewRocksdbOptions(opts *grocksdb.Options, sstFileWriter bool) *grocksdb.Opt
// reduce memory usage
bbto.SetCacheIndexAndFilterBlocks(true)
bbto.SetPinTopLevelIndexAndFilter(true)
bbto.SetPinL0FilterAndIndexBlocksInCache(true)

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

0 comments on commit c92f3a9

Please sign in to comment.