mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Thread caching into the query engine #553

Closed rnewman closed 6 years ago

rnewman commented 6 years ago

This is a bunch of prep work, then a small amount of actual caching.

This:

It turns out that for a trivial database, it's quicker to retrieve the value from disk rather than take it as input, but (a) it should make a difference on bigger queries and data, and (b) the culmination of this work has us not run SQL at all.

Ignore the "Debug logging" commit; it's there so you can see log output when you run

cargo test --release test_cache_usage -- --nocapture

A small step after this is to (a) allow flipping cache on/off in the CLI, and (b) allow caching attributes from the CLI. That'll let us demo caching improvements interactively.