asami

sb 2021-11-28T16:13:15.148800Z

I have a question, I read the documentation, but maybe I don’t find what I want. I would like to create a similar query like at Datomic:

(d/q '[:find (pull ?m pattern) ...
if I understand good that is similar like
(mapv #(d/entity db %) (d/q '[:find [?m ...]
when I would like to get all records. Is that possible add a pattern for this like at Datomic..? (which extract the connected informations?)

sb 2021-11-28T16:21:58.148900Z

maybe connected to this https://github.com/threatgrid/asami/issues/126, so you can ignore my question

👍 1
quoll 2021-11-28T20:56:03.151100Z

The pull API really is the most popular missing feature. I really need to get onto it soon. Unfortunately, I keep saying yes to requests to give talks, and that means that all my spare time is spent on that right now. For instance, I’m working on a talk right now.

❤️ 2
pithyless 2021-11-28T21:22:01.152600Z

Perhaps you should consider giving a talk about the upcoming Asami pull API support? 😁

quoll 2021-11-29T02:07:22.161700Z

Soooo many “upcoming” things to do 😢

quoll 2021-11-28T21:04:46.151700Z

Admittedly, I also let myself get sidetracked this week when I started building cljs-math

zeitstein 2021-11-28T22:44:43.159700Z

Just this morning I'd been benchmarking the https://github.com/tonsky/datascript/releases/tag/1.3.0. > Pull [...] wasn’t performant. Up to the point where building pull tree manually using entities would outperform pull, even with all entities overhead. This seemed weird, because pull has much more information ahead of time, which could be leveraged for optimizations. Specifically, the dominant use case for me would be pulling deep subtrees, and that's what I tested. I couldn't believe how well DataScript's pull performed compared to Asami's entity, about an order of magnitude faster. (And that's discounting the negative effect deeply nested trees have on Asami's entity as previously discussed.) Seeing as Asami is generally the fastest of Datalog databases (as far as I know), it would be exciting to see Asami's pull 🙂

zeitstein 2021-11-28T23:18:22.160Z

And, yes, will be watching the re:Clojure talk live :)

quoll 2021-11-28T23:19:46.160200Z

I’ll be presenting it live 😬

quoll 2021-11-28T23:20:31.160400Z

They’d prefer a video, but I don’t like the way that works out, so I’m going to attempt doing it live. It will be fun sorting out the technical issues, I’m sure 🙂

zeitstein 2021-11-28T23:20:46.160600Z

It'll be fine 😁

zeitstein 2021-11-28T23:23:49.160800Z

The Strange Loop talk went great!

quoll 2021-11-28T23:31:29.161Z

Thank you 🙂