How to optimize the performance of an Table

I I have the following interface (see the attached image). I attach the performance metrics from the debug bar. It seems too much of a templates and too much models calling. What are the strategies for optimization in such a cases? I have background optimizing raw SQL queries but I am kinda new in the Laravel and Filament space and I would appreciate a direction from you.
No description
No description
4 Replies
toeknee
toeknee16mo ago
It's slow because of the debug bar and the views collector. For performance, ensure your filters options are closures so fn() => MyOptions It you want faster experience with debug bar, ensure you disable view collection And to cache your blade icons
Manol T.
Manol T.OP16mo ago
@toeknee I compare this page with the other pages and it is 30-40% slower because it has more filters and columns. Would it help if you use redis caching of the queries? For me the issue does not seems to be from the queries, but anyway, I need to check 🙂
toeknee
toeknee16mo ago
Provide your filters code please
Kenneth Sese
Kenneth Sese16mo ago
As @toeknee mentioned you absolutely need to turn off view collection in debugbar. Publish the debugbar config and then set collectors > views to false.

Did you find this page helpful?