Fork me on GitHub
Steven Deobald00:01:12

Might be less confusing for folks who are new to Clojure if they’re commented out anyway? :woman-shrugging:


and is crux now a im memory database or does really data get stored on my disk


By default it's persisted on Kafka I think. But other options are available.


Actually nothing gets persisted by default. Everything is in-memory by default. You have to specify all the configuration (RocksDB, Kafka or whatever) explicitly in the call to start-node and include the relevant modules via your classpath deps


oke, thanks, then now I understand why data is lost when I start up repl again


🙂 cool & sorry that's not clearer from the docs - I'll give it some thought!

Toyam Cox07:01:30

I hate to be That Guy, but why :in replacing :args? I understood the semantics of :args at this point, I'm still trying to wrap my head around :in


I sympathise 🙂 :in was certainly more complex to grasp at first, but :args is much less powerful and keeping both approaches around for the long-term would only complicate things further. Specifically, the benefit is that the inputs provided via :in are handled as first-class relations, whereas to achieve the same effect with :args the user has to generate the cartesian products of all possible input combinations before handing them to the query engine (which could be prohibitively large for certain kinds of queries). In many scenarios :in will avoid a lot of work for the user and for the query engine compared to the :args alternative

Toyam Cox03:01:47

I understand, having written some of that code myself. Which just now needs to be changed 🙂

Toyam Cox07:01:27

Also is it no longer idiomatic to put question-marks before query bindings?


That's a datomic idiom. Crux has never followed it really. The query engine doesn't care about any prefixes.