1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

2 level index and filter for state ttl >= 30 days

This commit is contained in:
Marat S 2025-02-28 23:57:45 +00:00
parent 34f80e8f1b
commit 7f1ee5e9e1
3 changed files with 9 additions and 0 deletions

View file

@ -102,6 +102,8 @@ void CellDbIn::start_up() {
}
db_options.use_direct_reads = opts_->get_celldb_direct_io();
db_options.enable_bloom_filter = !opts_->get_celldb_disable_bloom_filter();
db_options.two_level_index_and_filter = db_options.enable_bloom_filter
&& opts_->state_ttl() >= 60 * 60 * 24 * 30; // 30 days
if (opts_->get_celldb_in_memory()) {
td::RocksDbOptions read_db_options;