4 ms·
> Except getting out of it wouldn’t be as easy as calling “select_related(…)” - you’d instead just end up re-inventing an ORM. This could be where we differ. I
by cnity 4y ago
> Except getting out of it wouldn’t be as easy as calling “select_related(…)” - you’d instead just end up re-inventing an ORM.
This could be where we differ. I wouldn't propose that at all, I'd propose writing a query more appropriate for whatever part of the code contains the iteration.
- orf 4y ago> I'd propose writing a query more appropriate for whatever part of the code contains the iteration. This is an identical solution to adding “select_related()” in the right places, and thus we loop back to the start of our thread.