Fork me on GitHub
#datomic
<
2022-09-08
>
Drew Verlee16:09:47

How is a datomic transaction id different from an entity id? I assume a transaction id is used as part of a transaction, and can be temp id or an existing id. But is there a different range for transaction ids and entity ids?

Drew Verlee16:09:34

Well temp-ids can be strings.

Drew Verlee16:09:54

ah, the transaction id probably refers to tx in the datomic data model https://docs.datomic.com/cloud/whatis/data-model.html

Drew Verlee16:09:47

oh yea, i remember now. The tx is necessary because we keep the entity history.

favila16:09:40

a datomic transaction id has a datom [tx :db/txInstant V tx true] , and the tx id is in a reserved partition.

favila16:09:59

otherwise it’s just an entity id, nothing special