27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
diff --git a/src/new_index/db.rs b/src/new_index/db.rs
|
|
index ef226d3..d9d51ba 100644
|
|
--- a/src/new_index/db.rs
|
|
+++ b/src/new_index/db.rs
|
|
@@ -87,10 +87,10 @@ impl DB {
|
|
db_opts.create_if_missing(true);
|
|
db_opts.set_max_open_files(100_000); // TODO: make sure to `ulimit -n` this process correctly
|
|
db_opts.set_compaction_style(rocksdb::DBCompactionStyle::Level);
|
|
- db_opts.set_compression_type(rocksdb::DBCompressionType::Snappy);
|
|
+ db_opts.set_compression_type(rocksdb::DBCompressionType::Lz4);
|
|
db_opts.set_target_file_size_base(1_073_741_824);
|
|
db_opts.set_write_buffer_size(256 << 20);
|
|
- db_opts.set_disable_auto_compactions(true); // for initial bulk load
|
|
+ db_opts.set_disable_auto_compactions(false); // for initial bulk load
|
|
|
|
// db_opts.set_advise_random_on_open(???);
|
|
db_opts.set_compaction_readahead_size(1 << 20);
|
|
@@ -109,7 +109,7 @@ impl DB {
|
|
pub fn full_compaction(&self) {
|
|
// TODO: make sure this doesn't fail silently
|
|
debug!("starting full compaction on {:?}", self.db);
|
|
- self.db.compact_range(None::<&[u8]>, None::<&[u8]>);
|
|
+ //self.db.compact_range(None::<&[u8]>, None::<&[u8]>);
|
|
debug!("finished full compaction on {:?}", self.db);
|
|
}
|
|
|