Skip to content

Glossary: Django Beyond the Basics

N+1 problem

Also written: N+1

One query for a list plus one more for each row, such as fetching each order's product separately. With 500 orders that's 501 queries.

Where the book teaches it

Related terms

select_relatedprefetch_related