use logical core count for rocksdb parallelism
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b0de16bf5a
commit
66e3e95b78
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue