mirror of
https://github.com/romanz/electrs.git
synced 2026-08-20 13:27:31 +02:00
Increase compaction readahead to 2MB
This should improve compaction throughput on HDDs.
This commit is contained in:
parent
219a962145
commit
1f979baf8f
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ impl DBStore {
|
|||
db_opts.create_if_missing(true);
|
||||
db_opts.increase_parallelism(2);
|
||||
db_opts.set_keep_log_file_num(10);
|
||||
db_opts.set_compaction_readahead_size(2 << 20);
|
||||
|
||||
let mut cf_opts = rocksdb::ColumnFamilyOptions::new();
|
||||
cf_opts.set_compaction_style(rocksdb::DBCompactionStyle::Level);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue