The N + 1 problem occurs when loading a collection requires one initial query plus a separate query for each related item. Loading 10 article summaries and then fetching each author can therefore require up to 11 database calls. section 5.1.2
Article summaries and authors
Reusing an articles table for summaries would retain each author’s ID. Loading summaries would then require one call for the articles and one author lookup per article. A separate article-summaries table avoids this pattern by storing the author’s name with each summary, alongside the fields needed for the summary view. section 5.1.2
Table 5.1 Article summaries have the same values for some fields, but other fields have subtle differences.
|
Articles
|
Article summaries
|
|---|---|
|
Title
|
Title
|
|
Author ID
|
Author name
|
|
Score
|
Score
|
|
Gallery of images
|
One image
|
Compare the fields used by full articles and article summaries to see why the summary table stores an author name rather than an author ID. section 5.1.2



