Slow loading of resource view
Today, I resumed work on my app. I updated everything with 'composer update,' and everything is functioning correctly. However, I've noticed an extreme slowdown in one of the views. It's an infolist for a single item to which I added a relation manager and an Apex chart (I tried excluding them one at a time, but the slowness persists).
I have the debug bar installed, but I can't figure out where the slowness is coming from.
I'm working locally with ddev, PHP 8.2, and everything is updated to the latest release of Filament, Laravel, plugins, etc
6 Replies
I would use the start_measure() and stop_measure() helper functions to figure out where the performance decrease is coming from and then take it from there. Add a bunch of those in and then compare old version vs new version
I'm not familiar with this option; do you have any references on its usage?
i've also found this bath nothing improve https://www.yellowduck.be/posts/filament-performance-when-using-laravel-debug-bar
Filament performance when using Laravel Debug Bar
About programming and devops
this is simple view
as you can see, the query are very quick
the problem is in the page rendering, the relation manager appears after 7,61s
Debugbar for a start should be removed when looking for performance or disable the views logging.
Relation manage tends to be lazy loaded
debugbar is terrible for performance hehe
just remove the
views
collector from debugbar and you should be fine. I find it helpful in finding runaway queries.