Fork me on GitHub
#datomic
<
2016-08-20
>
robert-stuttaford07:08:20

@cmcfarlen you'll have to check the behaviour of take-last, but i'm pretty sure that'll walk your entire transaction log

bkamphaus14:08:38

@cmcfarlen Yes, as @robert-stuttaford mentions it will perform poorly (always scan the transaction log in its entirety) with nil passed to both time limiting arguments. Best to make some educated guess/use some heuristic about the start argument (position of the first nil) so as to limit the total number of transactions considered.

zentrope22:08:59

Is there a way to get the wall-clock time of a TX returned from the d/history database?

zentrope22:08:22

I get numbers like: 13194139534536.

zentrope22:08:06

Resolves to year 2388.

zentrope22:08:17

(d/tx->t 13194139534536)

zentrope22:08:00

Nope. Misunderstood the glossary on that one.

zentrope22:08:28

:db/txInstant. Hm.