mylanconnolly
Encountering poor performance in production after a number of troubleshooting steps
Hello all, I nearly have an MVP set up for my application but I think the performance of it is going to be an issue. Each page in the application takes roughly 1.5 seconds to load, with the vast majority of that time being server response time (roundtrips to and from the server and SSL negotiation are around 100ms). I have configured Clockwork on my server and when I have it enabled to see where the bottlenecks lay, it shows roughly 100ms in database queries and the rest as "controller". If I try to enable xdebug to try and get more details it doesn't work so I have skipped that for now.
A few notes on my setup:
- My app is hosted using php-fpm (version 8.3.9). My web server is Caddy.
- My database is on another server in the same region, but database time seems to be relatively low.
- I have enabled opcache, and it seems to be working.
- When deploying the app, the following commands are run in order:
I saw that a lot of permission checks are performed so I tried to make those faster. I think it's important to note that this is not on pages that have a ton of records on them. Generally, I'm testing on pages with an empty table. I'm relatively new to PHP and since Filament is such a large codebase I'm trying to find my way around to determine how best to improve the performance but I'm a bit stuck. Any pointers would be greatly appreciated!
8 replies
Can we modify the dd tag that contains custom infolist entries?
Hello all,
I was working on creating a custom infolist entry for my app (basically a scrollable
pre
tag for fixed-width text. After playing around with my component for a while I determined I can't get it to work correctly without modifying the dd
tag that encloses my custom list entry component. Is there a way to do this? I see the emitted HTML has an empty class
attribute but I couldn't figure out how to modify that in the docs. I'd appreciate any assistance. Thanks!4 replies