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 :)
[ Parent
| on HN ]
ah okay. in that case add in a couple hours to refactor those N+1 queries and you’re all good
when do you ever have to do one query per array of items? genuinely curious
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 :)