This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-07
Channels
- # beginners (41)
- # boot (38)
- # cider (17)
- # cljs-dev (52)
- # cljsjs (3)
- # clojure (200)
- # clojure-italy (8)
- # clojure-russia (50)
- # clojure-spec (28)
- # clojure-uk (45)
- # clojurescript (28)
- # core-async (9)
- # core-matrix (2)
- # cursive (16)
- # datascript (15)
- # datomic (50)
- # dirac (5)
- # emacs (20)
- # figwheel (8)
- # flambo (2)
- # hoplon (10)
- # incanter (1)
- # jobs (1)
- # leiningen (2)
- # lumo (26)
- # mount (171)
- # off-topic (22)
- # om (54)
- # onyx (2)
- # pedestal (27)
- # re-frame (10)
- # reagent (12)
- # ring (27)
- # ring-swagger (3)
- # rum (2)
- # slack-help (1)
- # spacemacs (134)
- # specter (6)
- # sql (15)
- # testing (20)
- # uncomplicate (5)
- # unrepl (49)
- # untangled (9)
- # yada (29)
@tonsky wrong results. also see example output exception in code snippet (with reordered :where clauses)
on large dataset rule-based query gives correct results, where _
based one - does not:
(let [rules '[[(has-property ?p ?e) [?e :foo/properties ?p]]
[(has-property ?p ?e) [?e :bar/properties ?p]]]])
I could neither find any anomalies in my data, nor shrink it to reproduce false-positives in [?e _ ?p]
query
my db has retracted entities, so that somehow might be relevant (gaps in indexes or whatever).
@misha Shouldn't the values in your ds/transact!
for :foo/properties
and :bar/properties
be vectors?