Skip to content

How can I enable zstd compression allowed with sled with gluesql #253

Answered by panarch
jorge-alegre asked this question in Q&A
Discussion options

You must be logged in to vote

To use sled config directly, you can use TryFrom<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...

let config = sled::Config::default()  
    .path("data/using_config")             
    .use_compression(true);       

This will work :)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jorge-alegre
Comment options

Answer selected by panarch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants