---
title: "Discussion on \"The N+1 query problem in Laravel: how to spot it in 5 minutes on a client app\" | Hashnode"
description: "Discussion on \"The N+1 query problem in Laravel: how to spot it in 5 minutes on a client app\". When a client says \"the dashboard got slow after we added more customers\", the cause is usually not the server. Nine times out of ten it's an N+1 query hiding in a Blade loop. Here's the quick routine"
url: "https://hashnode.com/posts/the-n-1-query-problem-in-laravel-how-to-spot-it-in-5-minutes-on-a-client-app/6af683c91e6a5a078610b9d7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The N+1 query problem in Laravel: how to spot it in 5 minutes on a client app](https://aruntyagi-laravel.hashnode.dev/the-n-1-query-problem-in-laravel-how-to-spot-it-in-5-minutes-on-a-client-app?utm_source=hashnode&utm_medium=feed)

When a client says "the dashboard got slow after we added more customers", the cause is usually not the server. Nine times out of ten it's an N+1 query hiding in a Blade loop. Here's the quick routine

Nov 13 · 2 min read · aruntyagi-laravel.hashnode.dev  
Read the article

-   [#laravelphp](https://hashnode.com/tag/laravelphp)
-   [#performance](https://hashnode.com/tag/performance)

## Written by

[Arun Tyagi](https://hashnode.com/@aruntyagi)

@aruntyagi · Noida, India

  
[View profile](https://hashnode.com/@aruntyagi)

Freelance Laravel & SaaS developer, Noida. Building products for startups in India and the UAE.

Hi, I’m Arun Tyagi, a freelance Laravel and SaaS developer working from Noida (Delhi NCR), India. Over the last 10+ years I’ve delivered 100+ projects: multi-tenant SaaS platforms, REST APIs, admin dashboards, e-commerce stores and custom business web apps. Most of my clients are founders and small teams in India and the UAE who want one senior developer who owns the build end to end, not a large agency. What I work with: Laravel, PHP, MySQL, REST APIs, React, Next.js, React Native and WordPress (when it’s the right fit). What I write about here: Building and scaling SaaS on Laravel Upgrading and rescuing legacy Laravel apps Performance fixes (N+1 queries, caching, queues) Practical advice for founders on scope, cost and hiring If you’re planning a SaaS, an MVP or need someone to take over an existing Laravel codebase, you can reach me at aruntyagi.com.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
