News for hackers. Stuff that matters.
Re:Ban 1+N in Django by danielheath on Sunday March 26, 2023 @11:43PM (#35322622)
I don't want my app to change performance-sensitive behavior at runtime, that's a debugging nightmare.

I do want my framework to throw an error in development mode if I screw up the preloading.

Re:Ban 1+N in Django by wruza on Monday March 27, 2023 @06:51AM (#35325062)
Since this also requires the same heuristics, it could be just an option: orm.unroll(“auto|throw|none”). Would suit you, me and a commenter who wants hundreds of requests as they wrote.