Hacker News new | ask | show | jobs
by overcast 2418 days ago
selected_related is the solution, not the problem. Without it, Django would make a database query literally every single loop iteration. My point is that without paying attention, Django makes it very easy to query things, sub-optimally.