0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-05 05:18:54 +01:00

ircd::db: Checkpoint some table options for compression.

This commit is contained in:
Jason Volk 2018-12-01 16:11:32 -08:00
parent 711dfacd9a
commit b31432aae1

View file

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