F
Filament10mo ago
lodeki

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 ?
No description
8 Replies
toeknee
toeknee10mo ago
1. Do you have debugbar enabled? 2. The previous updates were ok, what changed. Is it a table view with 100's of records?
lodeki
lodekiOP10mo ago
No, i'm not using debugbar.Yes , the tables have more records.
toeknee
toeknee10mo ago
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.
Dennis Koch
Dennis Koch10mo ago
22s to download a JS file? Your issue is probably not related to Filament
toeknee
toeknee10mo ago
Good spot too!
Abi
Abi10mo ago
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.
Prosp30
Prosp3010mo ago
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...
Want results from more Discord servers?
Add your server