Browsing: PHP performance

A practical guide to the Laravel N+1 query problem: what it looks like in a Blade loop, how to catch it with preventLazyLoading, Laravel Debugbar, a query-counting middleware and expectsDatabaseQueryCount tests, and how to fix it with with(), nested and constrained eager loads, withCount, loadMissing, chaperone() and automatic eager loading.