Fork me on GitHub

Just curious. When I go to Datomic with the query (:some-key (entity 43)) it has to return datom with the latest tx possible. Given it uses [e a v t] index for that, does it mean that it will scan entire history of the attr? or th required Datom will be found before the historical one somehow?


There is a EAV Index and this operation should be fast as a hash-map access.


EAV includes just recent data somehow?


It's something like "lazy" cache. In the first access it can be slow, if your DB is larger then your RAM.