mirror of
https://github.com/matrix-construct/construct
synced 2024-11-04 21:08:57 +01:00
ircd::db: Checkpoint some table options for compression.
This commit is contained in:
parent
711dfacd9a
commit
b31432aae1
1 changed files with 9 additions and 1 deletions
10
ircd/db.cc
10
ircd/db.cc
|
@ -1591,10 +1591,18 @@ ircd::db::database::column::column(database &d,
|
|||
// Set filter reductions for this column. This means we expect a key to exist.
|
||||
this->options.optimize_filters_for_hits = this->descriptor->expect_queries_hit;
|
||||
|
||||
// Compression
|
||||
// Compression type
|
||||
this->options.compression = find_supported_compression(this->descriptor->compression);
|
||||
//this->options.compression = rocksdb::kNoCompression;
|
||||
|
||||
// Compression options
|
||||
this->options.compression_opts.enabled = true;
|
||||
this->options.compression_opts.max_dict_bytes = 0;//8_MiB;
|
||||
|
||||
// Mimic the above for bottommost compression.
|
||||
//this->options.bottommost_compression = this->options.compression;
|
||||
//this->options.bottommost_compression_opts = this->options.compression_opts;
|
||||
|
||||
//TODO: descriptor / conf
|
||||
this->options.num_levels = 7;
|
||||
//this->options.level0_file_num_compaction_trigger = 1;
|
||||
|
|
Loading…
Reference in a new issue