This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-05
Channels
- # architecture (3)
- # aws (4)
- # beginners (100)
- # boot (14)
- # cider (59)
- # cljs-dev (1)
- # cljsrn (24)
- # clojure (53)
- # clojure-dev (58)
- # clojure-italy (2)
- # clojure-spec (1)
- # clojure-uk (25)
- # clojurescript (7)
- # cryogen (1)
- # cursive (1)
- # datomic (9)
- # dirac (9)
- # duct (3)
- # off-topic (52)
- # om-next (3)
- # onyx (42)
- # portkey (28)
- # re-frame (3)
- # reagent (11)
- # rum (3)
- # shadow-cljs (12)
- # specter (7)
- # tools-deps (18)
- # vim (1)
- # yada (4)
can you use or
with multiple databases ?
(the answer is no: or
or-join
etc all take an optional $db)
why does (d/q '{:find [?e] :in [$0 $1] :where [[$1 ?e :thing _] ]} (first dbs) (second dbs))
return the entities of the first db not the second one ?
(let [dbs [[[123 :a 1] [124 :a 2]]
[[912 :a 1] [910 :a 2]]]]
(d/q '{:find [?e]
:in [$0 $1]
:where [[$1 ?e :a _]]}
(first dbs) (second dbs)))
;; => #{[910] [912]}
seems to work fine?
hmm I'm using Datomic Cloud
does datomic cloud definitely support queries with multiple dbs ? I see nothing in the "differences between" page to suggest it doesn't
I must be doing something wrong somewhere
not sure if it works with cloud. Someone asked this before, but I can't find the answer in history