mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::db: Use lower level0 compaction trigger to reduce read amp.
This commit is contained in:
parent
305c6e8075
commit
ea68ccdda1
1 changed files with 5 additions and 4 deletions
|
@ -1784,10 +1784,11 @@ ircd::db::database::column::column(database &d,
|
|||
(this->options.max_write_buffer_number * 6):
|
||||
48;
|
||||
|
||||
this->options.level0_file_num_compaction_trigger =
|
||||
this->options.compaction_style == rocksdb::kCompactionStyleUniversal?
|
||||
(this->options.max_write_buffer_number * 2):
|
||||
4;
|
||||
this->options.level0_file_num_compaction_trigger = 2;
|
||||
//TODO: for bulk ingest/bootstrap:
|
||||
// this->options.compaction_style == rocksdb::kCompactionStyleUniversal?
|
||||
// (this->options.max_write_buffer_number * 2):
|
||||
// 4;
|
||||
|
||||
// Universal compaction mode options
|
||||
auto &universal(this->options.compaction_options_universal);
|
||||
|
|
Loading…
Reference in a new issue