Any suggestions on speeding up filament?

I've recently deployed a large project (an ecommerce site) that uses filament as an admin panel. The server is pretty beefy (Xeon Quad Core, 16GB ram) but page loads and pagination seem quite sluggish. Are there any tips and tricks to further optimizing it? I'm not talking about tables where I have multiple queries and custom column views, but basic listing where I have 5 queries tops. I've noticed the same issue on way smaller scale projects on the same server. I'm running PHP 8.1 FPM with apache and mariadb 10.3. Laravel 9.
8 Replies
Dan Harrin
Dan Harrin2y ago
What speeds are you seeing? Not for the full request, just on the server how is it locally? if we had ways of optimizing it we would apply them by default
Fally
FallyOP2y ago
Total page load time is 1.95 seconds, the image shows that 1.73 is waiting for the response. I have the same table, maybe even less optimized on the old version of the admin panel running on laravel 6 i think but using jquery datatables and the waiting part is 841ms
Fally
FallyOP2y ago
Locally is slightly better
DeDe
DeDe2y ago
Dev/debug mode is disabled ? Filament running slow when is it in these mode with Laragon
wyChoong
wyChoong2y ago
artisan icons:cache
Vladyslav
Vladyslav2y ago
The service provider of blade icons takes a lot of resources while booting laravel app. Try to use icons:cache to avoid this annoying.
mwema
mwema2y ago
Tweaking the Server (apache2/nginx) should provide better results, I have a web app with more records and multitenant that performs well Specifically, I use nginx
Andrew Wallo
Andrew Wallo2y ago
opcache is a must as well. Plus, Livewire or anything really will be slow on first page request.

Did you find this page helpful?