datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
jrwdunham 2020-06-11T19:35:31.369100Z

Is the following guaranteed to give me the most recent N transaction datoms? Is there a better way to do this?

jrwdunham 2020-06-11T19:35:42.369500Z

(->>
   (d/datoms @conn :eavt)
   reverse
   (take N))

jrwdunham 2020-06-11T19:41:44.370400Z

Oops, I'm thinking that the following is probably a better approach as it will only return :db/txInstant datoms:

jrwdunham 2020-06-11T19:41:47.370700Z

(->>
   (d/datoms @conn :aevt :db/txInstant)
   reverse
   (take N))