# N plus one problem

The N+1 query problem happens when your code executes N additional query statements to fetch the same data that could have been retrieved when executing the primary query.

<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='READ' href='https://medium.com/doctolib/understanding-and-fixing-n-1-query-30623109fe89'>In Detail Explanation of N+1 Problem</BadgeLink>
