Fork me on GitHub
#datomic
<
2018-05-25
>
jetzajac12:05:32

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?

souenzzo12:05:27

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

jetzajac12:05:07

EAV includes just recent data somehow?

souenzzo12:05:51

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