This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-14
Channels
- # architecture (19)
- # beginners (3)
- # calva (2)
- # cherry (2)
- # clj-kondo (2)
- # clojure (58)
- # clojure-europe (15)
- # clojure-norway (1)
- # conjure (1)
- # data-oriented-programming (9)
- # data-science (10)
- # emacs (9)
- # hyperfiddle (1)
- # nbb (9)
- # off-topic (1)
- # shadow-cljs (24)
- # sql (14)
- # squint (58)
- # testing (13)
- # xtdb (10)
Hi there. š I just went through the fun https://nextjournal.com/xtdb-tutorial last night, and now I'm quite excited to start using XTDB. Where can I report 2 minor corrections?
I'll just leave this here:
ā¢ Lesson 5 ("match"): s/sees the 1000 credits move from/sees the 100 credits move from/
ā¢ Lesson 7 ("evict"): There's a reference to history-descending
, which I assume was changed to entity-history
as used in the example code.
@UJY23QLS1 The tutorial is open source. Feel free to add issues: https://github.com/xtdb/xtdb-tutorial/issues ... thanks!
Captured https://github.com/xtdb/xtdb-tutorial/issues/20 š š
Thanks @U01AVNG2XNF, @U899JBRPF. I couldn't spot a link to where the source might be. Here's a PR for you š https://github.com/xtdb/xtdb-tutorial/pull/21
Is it possible to :order-by
attributes that don't exist for some records, without excluding those records?
There isn't any documentation for it that I'm aware of, but you can use get-attr
for this. E.g. see this example from the tests: https://github.com/xtdb/xtdb/blob/e2f51ed99fc2716faa8ad254c0b18166c937b134/test/test/xtdb/query_test.clj#L1096
you could add a :order-by [[age :desc]]
to that example to sort by age, and any documents without an age will get a default age of 0
w00t! That's exactly what I was looking for, thanks @U7YNGKDHA š