improvement: don't fetch event multiple times

This commit is contained in:
Timo Kösters 2021-12-21 16:02:12 +01:00
parent b1d9ec3efc
commit 54f4d39e3e
No known key found for this signature in database
GPG key ID: 356E705610F626D5
2 changed files with 16 additions and 5 deletions

View file

@ -27,7 +27,9 @@ impl DatabaseEngine for Engine {
db_opts.set_num_levels(8);
db_opts.set_write_buffer_size(2 << 27);
let rocksdb_cache = rocksdb::Cache::new_lru_cache((config.db_cache_capacity_mb * 1024.0 * 1024.0) as usize).unwrap();
let rocksdb_cache =
rocksdb::Cache::new_lru_cache((config.db_cache_capacity_mb * 1024.0 * 1024.0) as usize)
.unwrap();
let mut block_based_options = rocksdb::BlockBasedOptions::default();
block_based_options.set_block_size(2 << 19);