This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-29
Channels
- # architecture (3)
- # aws-lambda (1)
- # babashka (7)
- # beginners (60)
- # calva (33)
- # chlorine-clover (8)
- # cider (24)
- # circleci (4)
- # clj-kondo (13)
- # cljs-dev (1)
- # cljsrn (12)
- # clojure (76)
- # clojure-australia (6)
- # clojure-europe (100)
- # clojure-france (1)
- # clojure-nl (13)
- # clojure-uk (16)
- # clojurescript (49)
- # conjure (1)
- # cryogen (8)
- # datomic (43)
- # dirac (3)
- # etaoin (1)
- # exercism (4)
- # fulcro (32)
- # jobs (2)
- # kaocha (4)
- # nginx (1)
- # off-topic (106)
- # pathom (8)
- # reagent (5)
- # reitit (5)
- # sci (52)
- # shadow-cljs (37)
- # tools-deps (30)
- # tree-sitter (18)
- # xtdb (18)
There are no clear examples in the docs from what I can see how an or clause would look like
You might need to use or-join
, e.g.
(or-join [?e s1 s2]
[?e :data/sex s1]
[?e :data/sex s2])
Kind of--the https://www.opencrux.com/reference/queries.html has a link to the https://github.com/juxt/crux/blob/master/crux-test/test/crux/query_test.clj which you can search for or
, or-join
, not
etc.
I think I saw it mentioned that those features are undocumented so far because they're still considered experimental (someone correct me if I'm wrong).
anecdotally, I have found that avoiding or
/`or-join` when possible has made my queries significantly faster, fyi
e.g. sometimes I'll separate a query into two separate queries, where each query has one branch of the or