Fork me on GitHub
#datascript
<
2017-11-30
>
boldaslove15600:11:30

Hello, is there anyway to explicitly set :db/txInstant data in datascript? It seems datascript doesn't allow me to override :db/current-tx

boldaslove15600:11:45

I need to override it so I can display the correct :db/txInstant based on datomic

Niki09:11:54

@boldaslove156 datascript does not set :db/txInstant at all

Niki09:11:37

it does not let you change transaction id, but you can set attrs on that transactions to any values you want

Niki09:11:49

(d/transact! conn
  [[:db/add e :attr v]
   [:db/add :db/current-tx :db/txInstant (js/Date.)]
   [:db/add :db/current-tx :original-datomic-tx-id 111111]])

sova-soars-the-sora23:11:13

so with datascript I can just send delta TX over the wire when I need to. do you have any recommendations on how to Subscribe subsets of user ids to specific events?

sova-soars-the-sora23:11:43

For example, if someone is in a specific room, I want to watch just changes on that room, presumably serverside before I send anything over the wire, to save precious bandwidth