News for hackers. Stuff that matters.
Re:Python-based compiler achieves orders-of-magnitude speedups by Doxin on Thursday March 16, 2023 @04:26AM (#35179533)
For sure, but django for instance is really good at turning something that ought to be one query into N+1 queries.
Re:Python-based compiler achieves orders-of-magnitude speedups by fud101 on Thursday March 16, 2023 @08:48AM (#35181168)
how do you deal with this?
Re:Python-based compiler achieves orders-of-magnitude speedups by WhatTheFlak on Thursday March 16, 2023 @08:08PM (#35190798)
Don't abuse the damn ORM.

And write SQL directly for medium complexity queries.

Re:Python-based compiler achieves orders-of-magnitude speedups by Doxin on Friday March 17, 2023 @10:09AM (#35197287)
In my experience? optimize things once it turns out to be a problem. It's not easy though and one of the many reasons I don't love the django ORM.