improvement: use db compression
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user