# eager-loading

Published articles for eager-loading.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Eloquent Performance and Database Design: Evidence Before Eager Loading

DevFeed: [Eloquent Performance and Database Design: Evidence Before Eager Loading](<https://devfeed.tech/articles/eloquent-performance-and-database-design-evidence-before-eager-loading-33303.md>)

Original publisher: [Read original article](<https://freek.dev/3190-eloquent-performance-and-database-design-evidence-before-eager-loading>)

Author: Freek Van der Herten (freek@spatie.be)

Published: 2026-09-11T12:30:27Z

Content type: tutorial

Language: en

Sources: [freek.dev - all blogposts](<https://devfeed.tech/sources/freek-dev-all-blogposts.md>)

Topics: [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Database](<https://devfeed.tech/topics/database.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [database](<https://devfeed.tech/tags/database.md>), [eager-loading](<https://devfeed.tech/tags/eager-loading.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [indexes](<https://devfeed.tech/tags/indexes.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>)

### AI overview

A practical deep dive into improving Eloquent performance and database design for a growing team dashboard. It covers detecting N+1 queries, choosing aggregates and indexes, inspecting query plans, pagination, chunking, and transaction boundaries.

### Source excerpt

A deep dive into Eloquent performance, from detecting N+1 queries to choosing aggregates, indexes, query plans, pagination, chunking, and transaction boundaries for a growing team dashboard. Read more

## Querying and Eager Loading complex relations in Laravel

DevFeed: [Querying and Eager Loading complex relations in Laravel](<https://devfeed.tech/articles/querying-and-eager-loading-complex-relations-in-laravel-39019.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/querying-and-eager-loading-complex-relations-in-laravel/>)

Author: Junior Grossi

Published: 2018-05-07T08:00:12Z

Content type: tutorial

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [eager-loading](<https://devfeed.tech/tags/eager-loading.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [framework](<https://devfeed.tech/tags/framework.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [orm](<https://devfeed.tech/tags/orm.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>)

### AI overview

A Laravel tutorial explains how to reuse the same anonymous function for filtering posts by related comments and eager loading only the matching comments through Eloquent.

### Source excerpt

Laravel is a PHP framework that uses Eloquent, a powerful and amazing ORM that allows you to do complex SQL queries in a very easy way. But sometimes you need more, and here I'm gonna give you an interesting tip that can bring you a lot of flexibility. When dealing with simple database queries in ... Continue reading Querying and Eager Loading complex relations in Laravel

## Speed up your Craft CMS Templates with Eager Loading

DevFeed: [Speed up your Craft CMS Templates with Eager Loading](<https://devfeed.tech/articles/speed-up-your-craft-cms-templates-with-eager-loading-31300.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/speed-up-your-craft-cms-templates-with-eager-loading>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2017-09-30T04:00:00Z

Content type: tutorial

Language: en

Sources: [nystudio107 | Articles on modern web development.](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Content Management System](<https://devfeed.tech/topics/cms.md>), [Database](<https://devfeed.tech/topics/database.md>), [Code](<https://devfeed.tech/topics/code.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Front end](<https://devfeed.tech/topics/frontend.md>)

Tags: [allows](<https://devfeed.tech/tags/allows.md>), [backend](<https://devfeed.tech/tags/backend.md>), [cms](<https://devfeed.tech/tags/cms.md>), [craft](<https://devfeed.tech/tags/craft.md>), [database](<https://devfeed.tech/tags/database.md>), [eager-loading](<https://devfeed.tech/tags/eager-loading.md>), [efficiently](<https://devfeed.tech/tags/efficiently.md>), [elements](<https://devfeed.tech/tags/elements.md>), [entries](<https://devfeed.tech/tags/entries.md>), [fetching](<https://devfeed.tech/tags/fetching.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [insights](<https://devfeed.tech/tags/insights.md>), [loading](<https://devfeed.tech/tags/loading.md>), [speed](<https://devfeed.tech/tags/speed.md>), [templates](<https://devfeed.tech/tags/templates.md>)

### AI overview

This tutorial explains how Craft CMS stores content as related Elements and how lazy loading can create an n+1 database access pattern. It introduces eager loading as a way to fetch related entries and assets more efficiently in templates.

### Source excerpt

Eager-Loading Elements allows you to speed up your Craft CMS templates by fetching entries from the database more efficiently.