Database management systems notes
Application-Level Performance
N+1 queries, pooling, batching and pagination, the costs that never show up in a plan. Every section is a drawn page beside a clear written explanation, about 19 minutes in all.
- Chapter 26 of 34
- About 19 minutes
- 5 sections
Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

In this chapter
- The N+1 query problem
- Connections are expensive
- Round trips, and batching them away
- Pagination that does not degrade
- Caching, and failing fast
Next chapters
Read the whole chapter
Sign in and the chapter opens with every drawn page, and all 35 database management systems chapters beside it.
DSA comes with the all labs plan and every ChaiCode batch.