Y
Hacker News
new
|
ask
|
show
|
jobs
by
nojs
238 days ago
FYI you can avoid the manual sprinkling of select_related somewhat with
https://pypi.org/project/django-auto-prefetch/
, which avoids the lowest hanging N+1 loops automatically. Definitely not a cure all but it helps.
2 comments
drcongo
238 days ago
Customers who like django-auto-prefetch may also like django-zeal:
https://pypi.org/project/django-zeal/
link
pryelluw
238 days ago
Yes, aware of this option. Thanks for posting it!
link