improvement: use db compression
This commit is contained in:
parent
a0fa0ee7a0
commit
5cb15551f3
3 changed files with 56 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue