Understanding and fixing N+1 query

In this article, you’ll learn about the famous N+1 query that everybody is talking about, and how to fix and prevent them.

Regarding backend performance, there is a performance issue that everybody has heard about at least once: N+1 query. What you’ll hear less often is that baking a chocolate cake is a perfect analogy to explain it.

What’s a N+1 query?