From b31432aae16470b646af765087174720f4c7a9c0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 1 Dec 2018 16:11:32 -0800 Subject: [PATCH] ircd::db: Checkpoint some table options for compression. --- ircd/db.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ircd/db.cc b/ircd/db.cc index f82b4891c..590e22511 100644 --- a/ircd/db.cc +++ b/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;