FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
I built a free Laravel package that auto-detects N+1 queries, slow queries & missing indexes
How-ToWeb Development

I built a free Laravel package that auto-detects N+1 queries, slow queries & missing indexes

via Dev.to WebdevBenjdia Saad1mo ago

If you've ever shipped a Laravel feature and later discovered it was firing 200 queries per page — this package is for you. I just released laravel-db-monitor , a free open-source package that silently watches every HTTP request and automatically flags database performance issues. 🔍 What It Detects 🐢 Slow Queries Flags any query exceeding your threshold (default: 500ms). Marks it as critical if it's 5x over the limit. 🔁 N+1 Queries The most common Laravel performance bug. Detects when the same query pattern runs 10+ times in a single request — something that's completely invisible without a tool like this. 📭 Missing Indexes Watches your real query patterns and tells you exactly which columns need indexes based on actual usage — not guesswork. ⚡ How It Works Install it and register one middleware. That's it. It runs silently in the background on every request. Then run: php artisan db:report And you see this: ▶ SLOW QUERY ● Slow query detected: 2300ms — Path: api/orders ● Slow query det

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
18 views

Related Articles

150 million users later, Roblox competitor Rec Room is shutting down
How-To

150 million users later, Roblox competitor Rec Room is shutting down

The Verge • 1d ago

Here are our favorite spring cleaning deals from Amazon’s Big Spring Sale
How-To

Here are our favorite spring cleaning deals from Amazon’s Big Spring Sale

The Verge • 1d ago

What we’re looking for in Startup Battlefield 2026 and how to put your best application forward
How-To

What we’re looking for in Startup Battlefield 2026 and how to put your best application forward

TechCrunch • 1d ago

Build Days That Actually Mean Something
How-To

Build Days That Actually Mean Something

Medium Programming • 1d ago

I have blogged about the difference between code coverage and test coverage and why it matters to distinguish between these 2.
How-To

I have blogged about the difference between code coverage and test coverage and why it matters to distinguish between these 2.

Dev.to Beginners • 2d ago

Discover More Articles