Re:Is ORM still an anti-pattern?
by jwlake on Tuesday June 27, 2023 @04:53PM
(#36498480)
I'm always confused that ORMS don't standardize on a syntax where N+1 queries are literally illegal in all cases. With `forEach` and callbacks and everything you could easily have a syntax where you can't await until an `run` and curry everything into a single round trip. It lets you write "standard" javascript but disallows N+1 loops always.
Then people have to write "bad" code to N+1.