The fact
Example: looping over 100 orders accessing user.email generates hundred extra queries.
Optimizing with select_related and prefetch_related drastically improves latency.
Click the link to read an article on the topic:
Example: looping over 100 orders accessing user.email generates hundred extra queries.
Optimizing with select_related and prefetch_related drastically improves latency.