News for hackers. Stuff that matters.
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.

Re:Is ORM still an anti-pattern? by ttfkam on Tuesday June 27, 2023 @05:09PM (#36498711)
If only this were true. ORMs have come up with some very subtle foot guns over the years.