---
title: "Improved lazy loading"
url: https://daily.dev/posts/improved-lazy-loading-0ouylraee
source_url: https://stitcher.io/blog/improved-lazy-loading
type: article
source: "stitcher.io"
published: 2024-07-28T19:23:06.879Z
updated: 2024-08-23T14:06:57.049Z
tags: ["performance", "php"]
reading_time: 12
upvotes: 105
comments: 1
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Improved lazy loading

**[stitcher.io](https://daily.dev/sources/stitcher)** · 12 min read · 105 upvotes · 1 comments

## Summary

The post discusses the design and implementation of an ORM named Tempest, focusing on improved lazy loading mechanisms. The key approach includes using typed properties for static analysis, making minimal configuration necessary by inferring relations directly from property types and docblocks. It contrasts Tempest's strict lazy loading with Laravel's default approach which allows lazy loading, thereby preventing n+1 query problems and optimizing performance. The post also explores PHP's technical details, including handling uninitialized properties and triggering property accessors for lazy loading.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://stitcher.io/blog/improved-lazy-loading>

## Community discussion

Top comments from developers on daily.dev.

**@istorres** · 0 upvotes

> good article. Tks for share.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/improved-lazy-loading-0ouylraee)
