by adamneilson · 10y ago · 0 comments
"Given a value of the database, one can obtain another value of the database as-of, or since, a point in time in the past, or both (creating a windowed view of activity). These database values can be queried ordinarily, without having to make special queries parameterized by time." http://www.datomic.com/rationale.html
So in other words you get to see exactly how the whole database looked at any given moment through history (certain parallels with the blockchain I suppose).
Datomic is an ok choice in some contexts, but the one detailed here is not one of them, you're likely to reach Datomic limits quickly and be in a world of hurt when you do.
This is known as "time travel queries". Postgres supported this back in the original version from the 1980s but then they took it out in 1997 because it takes up too much disk space.
It's trivial to do in an MVCC system. You just turn off garbage collection (vacuuming in PSQL parlance).