How can I enable zstd compression allowed with sled with gluesql #253
Answered
by
panarch
jorge-alegre
asked this question in
Q&A
-
I could use sled with compression. Is built with compression, but seems gluesql is not creating the SledStorage from config where I can use_compression(true). Is there any work around so I can have db use_compression: true ? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
panarch
Jul 2, 2021
Replies: 2 comments 1 reply
-
To use This example would be helpful. By simply changing the config as... let config = sled::Config::default()
.path("data/using_config")
.use_compression(true); This will work :) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
panarch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use
sled
config directly, you can useTryFrom<sled::Config> for SledStorage
.This example would be helpful.
https://github.com/gluesql/gluesql/blob/main/examples/using_config.rs
By simply changing the config as...
This will work :)