Detecting N+1 issues in your Laravel project with Ray
– myray.app - submitted by Spatie
Learn how to detect and resolve N+1 issues in your Laravel project by using Ray.
Read more [myray.app]
Posts tagged with performance
– myray.app - submitted by Spatie
Learn how to detect and resolve N+1 issues in your Laravel project by using Ray.
Read more [myray.app]
– rias.be
Stale While Revalidate (SWR) is a strategy to first return the data from the cache, then send the fetch request, and finally come up with the up-to-date data.
Read more [rias.be]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"Freek’s newsletter is one of the best ways to stay updated with the Laravel and PHP ecosystem. It consistently highlights useful packages, tools, and ideas from the community, especially the amazing work coming from Spatie. As a Laravel developer building SaaS and web platforms, I find it extremely helpful to discover practical tools and insights that improve my development workflow."
– blog.shahryartayeb.com - submitted by Shahryar
In this blog post, you will learn what event delegation is, how it can help you optimize your JavaScript code by reducing the number of event listeners, and how to implement it with a practical example.
Read more [blog.shahryartayeb.com]
– www.eloquentarchitecture.com - submitted by John Freeman
We have an export feature that can build an Excel file over the course of many background jobs. Worked beautifully for years. Man, those were the days.
Read more [www.eloquentarchitecture.com]
– fideloper.com - submitted by Chris Fidao
How to use Nginx Unit to server your Laravel application. It turns out, we can get rid of PHP-FPM, and run our apps more efficiently. We see how, and go over the pros and cons.
Read more [fideloper.com]
Tim McDonald explains Laravel's cool whenQueryingForLongerThan method.
Read more [timacdonald.me]
Personally, I've never done this, as it feels like a micro-optimizations, but still good to know.
Read more [www.deviaene.eu]
If you’re about to build a web app and you’re pretty sure it requires JavaScript, why not pause and consider whether you can provide a read-only version.
Read more [adactio.com]
– fly.io - submitted by Kathryn Anne Tan
In this article we remove the need to get entire datasets in order to make Client Side Pagination work. Instead, we get the dataset in lighter, less heavier parts!
Read more [fly.io]
– chriswhite.is - submitted by Chris White
I'll show you how to generate a ZIP export of an arbitrary numbers of files in an S3 bucket in a fast and memory efficient way, so you don't go OOM.
Read more [chriswhite.is]
The laravel-data package is fantastic to work with, but it also adds a lot of complexity when outputting data. In this blog post, we will look at how we've improved the performance of the package and, thus, the complete Flare application.
Read more [flareapp.io]
– ryangjchandler.co.uk - submitted by Ryan Chandler
In this post, Ryan demonstrates how to use FFI and a lower-level language such as Rust to improve the performance of a critical path.
Read more [ryangjchandler.co.uk]
– www.conroyp.com - submitted by Paul Conroy
Background images are key to a lot of compelling site designs, but can cause performance issues as they can't take advantage of native lazy loading. How can we get the benefit of using background images, but in a performant way?
Read more [www.conroyp.com]
– tighten.com - submitted by Jamison Valenta
Have you ever heard of a “kill switch”—a device meant to disable machinery if its owner is incapacitated? Turns out you can also build kill switches into your code. Tony shares four kill switch examples for Laravel applications.
Read more [tighten.com]
Learn what makes the programming language Rust a unique technology, such as the memory safety guarantees that enable more people to write performant systems-level code.
Livewire is an amazing piece of technology. It is extensively used in two products I work on: Oh Dear and Mailcoach Cloud.
In this post, I'd like to show you a simple technique where Livewire can help to improve your initial page load time significantly.
Google Lighthouse is an open-source, automated tool for improving the quality of web pages. It has audits for performance, accessibility, progressive web apps, SEO, and more.
Our newest package, spatie/lighthouse-php makes it easy to run Lighthouse using PHP. In this blog post, I'd like to tell you all about it.
– youtu.be - submitted by Bert De Swaef
In this video we're having a look at the Query Builder, and how to use it correctly.
We're optimizing our performance by a. lot of request time, models loaded and memory used.
Read more [youtu.be]
Fascinating read by Aaron Francis on how he used Netlify to generate dynamic OG images.
Read more [www.netlify.com]
– fly.io
Chris Fidao makes sure that an app feels fast no matter from where you visit it. Fascinating stuff!
Read more [fly.io]