Fork me on GitHub
#datascript
<
2020-10-09
>
arwakode19:10:58

Thanks everyone for the help. Didn't even think about passing in fns. 🎉

v19:10:32

when you invoke transact! is there a possibility to not block the thread.

v19:10:55

currently when i am transacting 4000 + datoms, the app hangs for few seconds

v19:10:36

is there way to perform transact! asynchronously?

cary20:10:27

if two entities are related, is there a way to find all the entities of one type which don't have a matching entity of the other type? in this contrived example, is there a way to find keys which don't have a known house?

(d/q '[:find ?key
       :where
       [?house :type :house]
       [?house :id ?house-id]
       [?key :type :key]
       [?key :house-id ?house-id]]
  @conn)

cary20:10:15

in that case specifically, I mean that the ?key would have a :house-id, but no house with that :house-id as its :id exists

hiredman21:10:15

the datomic docs mention not-join, not sure if datascript has that

hiredman21:10:22

looks like it does

cary22:10:23

excellent, I'll try that out 🙂 thanks!