This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-29
Channels
- # announcements (5)
- # beginners (25)
- # calva (53)
- # clj-kondo (9)
- # clojure (25)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (21)
- # clojure-uk (1)
- # conjure (2)
- # data-science (1)
- # datalevin (4)
- # datascript (6)
- # deps-new (5)
- # emacs (5)
- # etaoin (6)
- # figwheel-main (1)
- # fulcro (46)
- # gratitude (3)
- # hyperfiddle (8)
- # introduce-yourself (13)
- # lsp (13)
- # nextjournal (5)
- # off-topic (2)
- # pathom (4)
- # polylith (11)
- # re-frame (16)
- # releases (4)
- # scittle (67)
- # shadow-cljs (38)
- # slack-help (4)
- # specter (13)
- # sql (29)
- # squint (21)
- # test-check (3)
- # vim (13)
- # xtdb (15)
How does string index work? Does it compare strings lexiographically? This seems odd:
(ddb/-index-range
(d/db conn)
:name
"Peirca" "Peircz")
=> [#datalevin/Datom[100002 :name "Peirce"] #datalevin/Datom[100005 :name "Peirce"]]
(ddb/-index-range
(d/db conn)
:name
"Peirca" "R")
=> []
So “R” is not “more” than “Pericz”?{:name {:db/valueType :db.type/string}}
, you need to specify schema like so. Otherwise, the data is treated as EDN blob and the order is not going to be what you expect.
I thought I did that, but I guess I applied schema after the fact perhaps
thanks