Skip to content

Glossary: Django Beyond the Basics

prefetch_related

A QuerySet method for the many side of a relation. It runs one extra query for all related objects and sorts them into place in Python.

Where the book teaches it

Related terms

select_relatedN+1 problem