Thanks everyone for the help. Didn't even think about passing in fn
s. 🎉
when you invoke transact! is there a possibility to not block the thread.
currently when i am transacting 4000 + datoms, the app hangs for few seconds
is there way to perform transact! asynchronously?
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)
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
the datomic docs mention not-join, not sure if datascript has that
looks like it does
https://github.com/tonsky/datascript/blob/master/test/datascript/test/query_not.cljc#L71-L87
excellent, I'll try that out 🙂 thanks!