Fork me on GitHub
#datomic
<
2022-03-09
>
emccue14:03:42

I know with xtdb you have to explicitly await a transaction in order for you to be able to read your writes.

emccue14:03:04

But now i'm uncertain about how you are able to read your writes in Datomic - getting "ok" back from the transactor i don't think implies that your next read from storage will have the transaction present

emccue14:03:46

or if it does, i don't understand how

Joe Lane14:03:09

The result of a transaction returns the :db-after which has processed your transaction.

emccue14:03:30

from an api standpoint, yes that makes sense

emccue14:03:56

but when you actually go to perform a query on db-after, how do you know that the node you talk to will have the data?

Joe Lane14:03:12

There is a separate api function d/sync for cross-node operations

emccue14:03:18

reading now

emccue14:03:59

> Thus, contrary to common presumption but yeesh

emccue14:03:40

I think I need to invent some words to properly convey why i hate this writing style