vincent-herlemont / native_db

Drop-in embedded database in Rust
MIT License
364 stars 14 forks source link

Add support for compression. #137

Open jonatino opened 2 months ago

jonatino commented 2 months ago

Would be nice to support compression for db's that have strings and other easily compressible formats. Perhaps just add optional gzip compression to the db?

vincent-herlemont commented 2 months ago

db's that have strings and other easily compressible formats.

@jonatino The database stores only data serialized by native_model. There are no strings that are directly recorded in the database.

However, it would be necessary to list and study the implementations and understand how compression is implemented in other databases in order to have a state of the art understanding of compression techniques for databases.

On my side, it's not a priority, but if you want to start, I support you :)