News for hackers. Stuff that matters.
Re:Datomic Is Now Free by augustl on Thursday April 27, 2023 @03:38PM (#35733469)
A few milliseconds per query adds up if you're doing one query per item in a list with 100s or 1000s of elements :)
Re:Datomic Is Now Free by tyre on Thursday April 27, 2023 @09:33PM (#35736572)
ah okay. in that case add in a couple hours to refactor those N+1 queries and you’re all good
Re:Datomic Is Now Free by bt1a on Thursday April 27, 2023 @11:36PM (#35737210)
when do you ever have to do one query per array of items? genuinely curious
Re:Datomic Is Now Free by augustl on Friday April 28, 2023 @01:26AM (#35737738)
I suppose I think of this the other way around. When the query engine is inside your app, it doesn't have to invent a way for the query engine to do loop-like things. So you can have a much simpler querying language and mix it with plain code, kind of similar to how you don't need a templating language in React (and in Clojure when you use hiccup to represent HTML)
Re:Datomic Is Now Free by robertlagrant on Friday April 28, 2023 @08:55AM (#35740701)
> A few milliseconds per query adds up if you're doing one query per item in a list with 100s or 1000s of elements :)

If you're doing this, then you need to stop :)