intermediate · 12 min · $4.00
Queries Without the N+1
The slowest page you'll ever ship is usually one innocent loop over an association.
After this: Spot and kill N+1 query patterns in Ecto with preloads and joins.
The classic N+1: you load a list, then touch an association inside a loop, firing one query per row.
The rest of this chapter is part of the catalog
Add it to your edition →