Glossary

Lazy Loading

Lazy Loading is a deferred-loading pattern: a resource or data is loaded only when it is actually needed, not in advance. The opposite is Eager Loading (loading everything upfront).

In different contexts

When to be careful

In ORMs, lazy loading is convenient during development but dangerous in production: it is easy to miss how one property access turns into dozens of queries. Recommendation: in production code, always explicitly declare which relations are needed — through eager loading.