Fork me on GitHub
#asami
<
2021-11-28
>
sb16:11:15

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?)

sb16:11:58

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

👍 1
quoll20:11:03

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
pithyless21:11:01

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

quoll02:11:22

Soooo many “upcoming” things to do 😢

quoll21:11:46

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

zeitstein22:11:43

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 🙂

zeitstein23:11:22

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

quoll23:11:46

I’ll be presenting it live 😬

quoll23:11:31

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 🙂

zeitstein23:11:46

It'll be fine 😁

zeitstein23:11:49

The Strange Loop talk went great!

quoll23:11:29

Thank you 🙂