Fork me on GitHub
#xtdb
<
2023-10-06
>
Daniel Ziltener10:10:25

We are wondering if a call to xt/submit-tx always results in a new transaction log entry, even if it is an empty transaction. Does it?

refset13:10:40

Hey @U029CG5DAPP - yes it will do, and you can observe this by noting how the returned tx-id and tx-time are increasing

Daniel Ziltener13:10:00

Okay, thanks for the information πŸ™‚ We have a background process that transacts every few minutes, so we will ensure then that it only calls tx/submit-tx when there actually is something to transact, so we don't pollute the log.

πŸ‘ 1
☺️ 1
djtango12:10:42

is there an xt/entity-tx for multiple eids? I have a sequence of eids I'd like to get the ::xt/tx-time for... Even better if I can do it via a single query...

refset13:10:11

Hey @U0HJD63RN you can call xtdb.api/entity-tx from within a query, e.g.

{:find [etx]
 :in [[e ...]]
 :where [[(xtdb.api/entity-tx $ e) etx]]}

ianjones14:10:23

is $ doing anything special here?

ianjones14:10:41

seems like its passing db in?

βœ… 1
djtango17:10:01

oh nice thanks @U899JBRPF!

πŸ™ 1