This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-31
Channels
- # aleph (37)
- # babashka (23)
- # beginners (46)
- # calva (1)
- # catalyst (12)
- # cider (3)
- # circleci (5)
- # clj-kondo (8)
- # clojure (188)
- # clojure-europe (28)
- # clojure-nl (1)
- # clojure-norway (84)
- # clojure-sweden (2)
- # clojure-uk (1)
- # clojurescript (6)
- # clr (1)
- # cursive (4)
- # datahike (4)
- # datascript (7)
- # datomic (31)
- # deps-new (16)
- # emacs (4)
- # fulcro (4)
- # gratitude (17)
- # hyperfiddle (24)
- # introduce-yourself (4)
- # jobs (5)
- # off-topic (84)
- # pathom (10)
- # polylith (21)
- # portal (6)
- # re-frame (6)
- # reitit (4)
- # releases (1)
- # sci (74)
- # specter (3)
- # tools-build (3)
- # tools-deps (5)
Is eav
sorted by v
? I'm pretty sure that's the case but I want to make sure.
https://github.com/tonsky/datascript/wiki/Tips-&-tricks#getting-top-10-entities-by-some-attribute kinda indicates it but it's specifically talking about ave
.
https://github.com/kristianmandrup/datascript-tutorial/blob/7d2b684611061ab117101317fe5059c6377d8728/datascript_architecture.md#db says that each index is a sorted set of datoms. Although it's not explicit enough that I'm not worried about it. Like, it's not only sorted by ea
and is also sorted by v
, right?
Thanks!
the index names refer to the sort order, eav is sorted by entity, attribibute, value
https://github.com/tonsky/datascript/blob/master/src/datascript/db.cljc#L493-L512 is where the comparison functions are defined
https://github.com/tonsky/datascript/blob/master/src/datascript/db.cljc#L975-L977 is where the sorted sets using the comparison functions are created for each index