This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-25
Channels
- # announcements (9)
- # aws (50)
- # babashka (7)
- # beginners (95)
- # calva (10)
- # chlorine-clover (17)
- # cljdoc (11)
- # cljs-dev (4)
- # cljsrn (6)
- # clojars (25)
- # clojure (74)
- # clojure-belgium (4)
- # clojure-dev (17)
- # clojure-europe (3)
- # clojure-italy (23)
- # clojure-nl (3)
- # clojure-norway (5)
- # clojure-sanfrancisco (30)
- # clojure-spec (46)
- # clojure-uk (27)
- # clojured (3)
- # clojurescript (91)
- # core-async (61)
- # cursive (3)
- # data-science (4)
- # datascript (7)
- # datomic (67)
- # emacs (15)
- # events (1)
- # figwheel-main (13)
- # fulcro (31)
- # graalvm (1)
- # graphql (3)
- # hoplon (2)
- # jobs (3)
- # jobs-rus (1)
- # kaocha (4)
- # lambdaisland (34)
- # luminus (4)
- # off-topic (62)
- # om (4)
- # other-languages (9)
- # re-frame (14)
- # reitit (1)
- # ring-swagger (1)
- # shadow-cljs (51)
- # sql (5)
- # xtdb (8)
Hi there š
I am checking the docs and I see:
Crux does not support:
ā¢ vars in the attribute position, such as [e ?a "Ivan"]
or [e _ "Ivan"]
I don't have it as hard requirement but I was curious as to know why this is the case š
hey Andrea š it reduces the amount of indices we need to keep, and would also involve more complexity (likely a corresponding performance hit) in the query engine for we perceive to be a (relatively) uncommon use case
Thanks for the prompt answer! One thing that I often do, admittedly as newbie, is to get all attributes for an entity š Also as a side question, does it therefore practically mean that there are no A**T indexes in Crux?
ah, yes, me too š we've got (crux.api/entity db entity-id)
for that one, if that helps
indexes-wise, we have AEV and AVE - because we know we've always got an attribute in hand, we can always use that first in the index lookup we've also got separate temporal indices that tell us what version a document was at which times - these don't have any attributes or values in, just the entity, the bitemporal co-ordinates, and the content hash of the document at that time
I see, thanks a lot @U050V1N74
Worth noting that for forward refs you can simply pull out the doc, and for reverse refs you can examine attribute-stats
to check all possible attributes
oh cool that's good to know