use logical core count for rocksdb parallelism

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-04-25 19:37:53 -07:00 committed by June
parent b0de16bf5a
commit 66e3e95b78

View file

@ -22,7 +22,7 @@ pub(crate) fn db_options(config: &Config, env: &mut Env, row_cache: &Cache, col_
// Processing
let threads = if config.rocksdb_parallelism_threads == 0 {
num_cpus::get_physical() // max cores if user specified 0
num_cpus::get() // max cores if user specified 0
} else {
config.rocksdb_parallelism_threads
};