This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-07
Channels
- # announcements (1)
- # babashka (34)
- # bangalore-clj (2)
- # biff (2)
- # cider (63)
- # clj-commons (1)
- # clj-kondo (4)
- # cljdoc (44)
- # clojure (65)
- # clojure-europe (45)
- # clojure-nl (4)
- # clojure-norway (85)
- # clojure-uk (5)
- # clojurescript (5)
- # cursive (11)
- # datomic (8)
- # graalvm (11)
- # honeysql (7)
- # hoplon (9)
- # hyperfiddle (3)
- # introduce-yourself (1)
- # matrix (2)
- # missionary (17)
- # overtone (2)
- # polylith (6)
- # portal (16)
- # re-frame (24)
- # releases (2)
- # sci (45)
- # xtdb (9)
I was looking through the docs on XTDB, and there does not seem to be an option to enable the AcceptEncoding header to get compressed results when using the new-api-client
with the URL, is that correct?
We noticed that longer key names cause the result to come back slower than doing aliases like s0
, s1
, etc. in the :find
and :where
to get the return values
doing that extra work for re-naming keys in the where
seems that doing extra work there vs just a (pull e [*])
implies that it is data content transfer that makes it take twice as long
we were seeing about 150ms to 200ms return for the longer key names (around 80 characters) vs being reduced to ~50ms for sXX
key names for about 20 items on the document
(the 80 characters come about from adding namespaces to the keys and for uniqueness and differentiation between related values)
Hey @US03ZP2F5 thanks for sharing your analysis and feedback - unfortunately that looks to be the case currently. clj-http
exposes the options needed but we're not making use of them currently: https://github.com/xtdb/xtdb/blob/f65c4a398584ec03830509baa2085f3a880a1694/modules/http-client/src/xtdb/remote_api_client.clj#L61-L66
PRs are always welcome (should you be interested to propose a fix 🙂) but I've raised an issue for the time being: https://github.com/xtdb/xtdb/issues/2911