This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-11
Channels
- # announcements (16)
- # aws (4)
- # babashka (30)
- # beginners (58)
- # bristol-clojurians (4)
- # cider (9)
- # clj-kondo (2)
- # clojure (229)
- # clojure-europe (25)
- # clojure-gamedev (1)
- # clojure-italy (4)
- # clojure-nl (13)
- # clojure-sanfrancisco (1)
- # clojure-uk (97)
- # clojured (7)
- # clojurescript (27)
- # code-reviews (2)
- # cursive (30)
- # data-science (39)
- # datomic (14)
- # emacs (12)
- # events (2)
- # fulcro (6)
- # graalvm (8)
- # graphql (14)
- # jackdaw (10)
- # jobs (2)
- # lambdaisland (5)
- # malli (4)
- # off-topic (28)
- # protorepl (13)
- # quil (7)
- # re-frame (2)
- # reagent (1)
- # reitit (3)
- # remote-jobs (5)
- # ring-swagger (1)
- # shadow-cljs (72)
- # sql (4)
- # tools-deps (182)
- # uncomplicate (4)
- # vim (9)
- # xtdb (19)
Hi there, I'm having a bit of trouble with a simple query I'm trying to write using the pull syntax. Some entities has an attribute that looks like
{:db/ident :some-component
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/many
:db/isComponent true}
This particular attribute often holds a list of some 2000+ elements.
So, pull seems to want to return 1000 elements by default. To lift the limit, I tried the following...
(pull ?e [* (:some-component :limit nil)]) ;=> limit not lifted, returned 1000 elements
(pull ?e [* (limit :some-component nil)]) ;=> limit not lifted, returned 1000 elements
(pull ?e ["*" (:some-component :limit nil)]) ;=> limit not lifted, returned 1000 elements
(pull ?e ["*" (limit :some-component nil)]) ;=> returned all 2184 elements
So, of the 4 cases, only the last one returns the correct number of elements. But, by using "*", all the key names seem to have been converted to strings.Sanity check: does your version of datomic support this syntax? it was added in on prem in version 0.9.5656
I believe there is a bug that @U05120CBV filed around this
@U09R86PA4 I'm using 0.9.6014.
It does not currently; can you provide more detail on use case? Is this a performance thing or robustness or other? Do you have specific quantitative requirements (i.e. speed/throughput/etc)?