improvement: use db compression

This commit is contained in:
Timo Kösters committed 2021-03-18 13:13:08 +01:00
1 parent a0fa0ee7a0
commit 5cb15551f3
3 files changed
+56 -2

No files matched your search

+1
View File
@@ -103,6 +103,7 @@ impl Database {
let db = sled::Config::default()
.path(&config.database_path)
.cache_capacity(config.cache_capacity as u64)
.use_compression(true)
.open()?;
info!("Opened sled database at {}", config.database_path);