erikgrinaker / toydb

Distributed SQL database in Rust, written as a learning project
Apache License 2.0
5.99k stars 555 forks source link

Schema cache #20

Closed erikgrinaker closed 4 years ago

erikgrinaker commented 4 years ago

The KV SQL engine should cache schema lookups.

This needs to be implemented at the MVCC level, so that versioning works - probably by specifying prefixes that should be cached. The downside of this is that it needs to go through serialization.

erikgrinaker commented 4 years ago

Will drop this. The primary SQL engine is in-memory anyway, so a cache would only save the deserialization cost, which we may not be able to avoid anyway due to MVCC versioning.