Fork me on GitHub
#xtdb
<
2024-02-23
>
emil0r09:02:01

@taylor.jeremydavid I’ve been playing around a bit with xtdb v2 and I’m really confused as to the state of datalog queries. It seems like they’re gone and are being replaced by XTQL?

refset10:02:45

Hi @U0545PBND that's essentially correct, yes. We decided to forego the {:find [...] :where [...] syntax in favour of something more amenable to working with multiple relations (n-ary tables) and relational composition more generally. Instead, the unify operator in XTQL is a Datalog-like unification scope where joins can be expressed succinctly. Is there an aspect of the original syntax that you feel is missing?

emil0r11:02:19

More that you broke backwards compatibility 😞

refset12:02:03

Ah, yes the v2 query engine works quite differently (tables, full bitemp, 3VL, no clojure.core/* etc.) so the query semantics were always destined to be incompatible. In the end we decided it would be preferable to offer a query language that was more sympathetic (and therefore simpler) to the new capabilities