meilisearch / heed

A fully typed LMDB wrapper with minimum overhead 🐦
https://docs.rs/heed
MIT License
519 stars 52 forks source link

Remove internal database type checking #243

Closed Kerollmops closed 5 months ago

Kerollmops commented 5 months ago

This PR removes the security around checking that a database is always opened with the same codecs. It removes a mutex and simplifies some parts of the code. Note that it wasn't even useful because it was impossible to ensure the codec was the same between two program runs. One could use a codec to serialize the entries, and another could read them with another codec.