Very slow app
Hi, my app has been slow recently , taking even minutes to load the dashboard .I'm using Filament v3.1.27 and Livewire 3.0 . Any idea of how to make the app faster ?
8 Replies
1. Do you have debugbar enabled?
2. The previous updates were ok, what changed. Is it a table view with 100's of records?
No, i'm not using debugbar.Yes , the tables have more records.
How many more? when you have 100+ records it is very slow because it passes the whole html. You shouldn't need that many records showing. You need to add filters etc.
22s to download a JS file? Your issue is probably not related to Filament
Good spot too!
i remember when I was debugging one of my new clients code that was handled by a previous developer, they were accessing an attribute for a table column that was eager loading records from another table causing it to slow down. something similar, but it had nothing to do with Filament. Took some time to figure out... May be check if something like that is in there.
Also, be careful when using relations... Ie
$this->products and $this->products() are not the same...
One fetches the relation, other one makes an SQL query that fetches ALL the records in that relation, and then uses your where clauses...