0
0
Fork 0
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:
Jason Volk 2022-07-11 15:08:17 -07:00
parent 305c6e8075
commit ea68ccdda1

View file

@ -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);