Detecting slow database operations in Laravel 9.x

1 · Amit Merchant · June 24, 2022, 4:11 p.m.
When working with databases with web applications, you never know when some query, which used to work fine, starts slowing down in some scenarios. For instance, in a scenario where the indexing is not done properly or the data being inflated to some table has gotten overwhelmingly large. You may want to know when something like this happens to your application, don’t you? So, let’s say you’re working with MySQL, the one way to check this is by using the slow query log which can be used to find q...