Fork me on GitHub
#xtdb
<
2021-10-11
>
tatut13:10:33

how big a performance impact does this have?

WARN  xtdb.cache - Could not open ConcurrentHashMap.table field - falling back to LRU caching. Use `--add-opens java.base/java.util.concurrent=ALL-UNNAMED` to use the second-chance cache.

refset14:10:03

Hi, this relates to the "second-chance cache" (https://github.com/xtdb/xtdb/pull/1158) - the performance difference between this and the LRU cache will really depend on your data set and hardware, but I expect it will only be single-digit-% slower when using LRU. To test the difference yourself you should be able to try downgrading your JDK, or enabling the flag as described (see also https://github.com/xtdb/xtdb/issues/1462#issuecomment-802739964)

hkjels23:10:21

is there a way to get unqualified keys when doing pull? Except from renaming using :as or transforming after the fact

refset10:10:31

As in the equivalent of (keyword (name kw))? There's nothing built-in to our pull implementation to help with this. One option is to do the transformation within Datalog by wrapping your query in an outer query and calling out to Clojure functions. Is there definitely no chance of key collision in your data doing this though?

hkjels10:10:26

OK. I haven’t really put much thought into them when working in clojure/clojurescript. It just feels really unnatural from javascript which I’m dabbling with right now

hkjels10:10:19

but there won’t be collisions, no. It’s just a small pet project, so there’s no deep nesting going on

👍 1
refset10:10:05

That sounds fair enough. Are you using XT embedded in your app? Or over HTTP?