0:24:07
Auto-prefetching with model field fetch modes in Django 6.1
DjangoCon US 2026 · October 26, 2026
Also given at DjangoCon Europe 2026
New in Django 6.1, model field fetch modes provide a way to avoid the deluge of queries from accessing un-fetched objects during a loop (also known as the "N+1 queries" problem). You may be familiar with how Django's prefetch_related() and select_related() methods can prevent these…