Performance: N+1 query problems
In short, an N+1 query problem occurs when for each row returned in an initial query (to a sql database for example) your application needs to perform a second query to retrieve additional data from another table. Let's see what its implications are and how to avoid this problem...