mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 18:37:59 +00:00
Fix benchmarks: set cache_size to higher value (#5585)
* 128 -> 1024 * add trace and set = 512 * fix doc comment
This commit is contained in:
@@ -284,7 +284,7 @@ pub enum DatabaseSettingsSrc {
|
||||
Path {
|
||||
/// Path to the database.
|
||||
path: PathBuf,
|
||||
/// Cache size in bytes.
|
||||
/// Cache size in MiB.
|
||||
cache_size: usize,
|
||||
},
|
||||
|
||||
|
||||
@@ -243,6 +243,15 @@ pub fn open_database<Block: BlockT>(
|
||||
|
||||
db_config.memory_budget = memory_budget;
|
||||
|
||||
log::trace!(
|
||||
target: "db",
|
||||
"Open database at {}, state column budget: {} MiB, others({}) column cache: {} MiB",
|
||||
path,
|
||||
state_col_budget,
|
||||
NUM_COLUMNS,
|
||||
other_col_budget,
|
||||
);
|
||||
|
||||
Arc::new(Database::open(&db_config, &path).map_err(db_err)?)
|
||||
},
|
||||
#[cfg(not(any(feature = "kvdb-rocksdb", test)))]
|
||||
|
||||
Reference in New Issue
Block a user