Fork me on GitHub

So I've been thinking about datascript persistence, and I came across this:, which turned me on to the idea of actually storing eavt instead of the serializing the whole db and storing it as a string, which is what I'm doing now. (the db in question is not large). But, I struggle a bit with how this actually works on the query side. Is there some resource I can learn from about this? Or does, eg. a Datomic peer, just grab every datom for, a given entity, and then sort by a, v, t to get current values?