Fork me on GitHub
#datomic
<
2017-08-26
>
hmaurer10:08:57

Is a datomic.db.DbId always representing a temp ID?

favila17:08:31

In theory it can represent any eid. Its purpose is to late-bind the partition id

hmaurer19:08:14

@U09R86PA4 Oh I see. So I assume the db partition is encoded as part of a long entity ID.

hmaurer19:08:32

A datomic.db.DbId is just an entity ID without the partition bit?

hmaurer19:08:39

Ah nevermind, what I just said was non-sense

hmaurer19:08:14

If I understand it correctly now, an entity ID is an encoded version (as a long) of a DbId, with the DB partition id resolved

hmaurer19:08:35

Which is what you said 😛

hmaurer21:08:24

@U09R86PA4 thank you! out of curiosity, where did you learn so much about Datomic’s internals?

favila21:08:58

Scraps of info from talks, articles, etc, plus reverse engineering. We needed entity ids to survive in js, so we had to study their ranges

hmaurer10:08:56

DB ids in query results are always of type Long