Filament is Slow? Check Laravel Debugbar.

preview_player
Показать описание
If you notice that some dynamic elements in Filament are loading slowly, I have a tip for you.
Рекомендации по теме
Комментарии
Автор

Thanks
The use of external icons blade and the Windows environment is also one of the reasons why the Filament is very slow.

development
Автор

I already knew this tip. Thanks for reminding.
But even without Laravel Debugbar, Filament is way slower then the pure Laravel applications I build myself. Comfort (and hundreds of classes) come with a trade-off, I guess.

kreaweb-be
Автор

Unfortunately not helped for me... Base: Win 10, WSL2 Ubuntu 20, Docker-compose: nginx-latest, php8.2-fpm, redis-latest, postgresql-lates. Clean installation of PHP8.2, Laravel 11, Filament 3.2, laravel-debugbar. OPcache is enabled. Xdebug not installed. Disabled all extensions in the browser, debug mode and debug views. Ran: php artisan icons:cache && php artisan filament:cache-components && php artisan optimize. The cold basic load is 11-12sec, subsequent 3-8sec. And this is on a top-end PC on Local with an empty database and zero load! It’s scary to imagine what will happen in production! What to do? Any advice?

__hatred
Автор

General slowness of Filament is one thing, but slowness of a specific control or when debugbar is in use seen to me like bugs that need to be tracked down and fixed.

SodalisUK
Автор

When it's slow... You can also do

php artisan icon:cache

Changed my life.

allforone
Автор

0:41 Tip: in env file, use DEBUGBAR_ENABLED=false instead

ericmp
Автор

Povilas, in a RelationManager, I would like to customize the select options of the attach action, displaying the id and name of the related model. Could you demonstrate this?

Claudio_Pereira
Автор

how to fix table builder take 10 second to conplete load. this only happen after i deploy to online server.

mohammadkamil
Автор

If You check the select input box with searchable then you can see it is also not quick. (I don't have debugbar installed)

GergelyCsermely
Автор

php Artisan icons:cache

Upgrading Livewire from 2 to 3, improves speed. I remember Caleb Porzio in last Laracon 2023 in Nashville mentioned that livewire 2 has slowness problems and that he fixed them already in livewire 3

latlov
Автор

Is there a way to enable cursor pagination?
I have 5 million records and then Filament Table becomes slow and uncomfortable to use.

I looked at the Debugbar and the cause was pagination, especially in the count(*) query.

MRizkyPK
Автор

i not using debugbar but sometimes it feels kinda slow, maybe i'm doing something wrong

ricko
Автор

Slow is about big data not dialogs appearing

andrews
Автор

but still slow in this video few record you show. try show more than 50 records

nazarali