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

Log API #597

Open rnewman opened 6 years ago

rnewman commented 6 years ago

Datomic supports a neat API for examining the log:

https://docs.datomic.com/on-prem/log.html

We're not far from having this in Tolstoy, so I think this is quite achievable.

rnewman commented 6 years ago

Worth mentioning why this is useful: if you wanted to build a list of entities that had changed since you last did something — e.g., since you last implemented some kind of sync — this is how you'd do it. You can't just query the datoms table for entities with a tx greater than some value, because retractions and excisions will be missed.