This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-19
Channels
- # babashka (2)
- # babashka-sci-dev (15)
- # beginners (44)
- # clara (6)
- # clj-kondo (5)
- # clojure (39)
- # clojure-europe (5)
- # clojurescript (14)
- # data-science (5)
- # datahike (6)
- # datalevin (7)
- # graalvm (2)
- # helix (3)
- # humbleui (8)
- # minecraft (1)
- # missionary (10)
- # nbb (8)
- # nrepl (2)
- # portal (11)
- # shadow-cljs (3)
- # tools-deps (6)
- # xtdb (10)
Jo what happens when I add :db/index true to an attribute with cardinality many? Does it make an index for each single value or for each "composite" value if that makes sense ?
The use case is I have a product lookup with a key called "model". Each product can have many models. Also I would like to lookup the data via the models.
The indexes for Datahike are the same as they are for Datomic, afaik. https://docs.datomic.com/on-prem/query/indexes.html Each datom is indexed by default in the eavt- and the aevt-index, that makes lookups by entities or attributes super fast.
:thumbsup: I was wondering about AVET when I have a :db/index attribute that is also "many". I guess the lookup is fast for all values? Let's say I have a product with model names (many strings).