When I think about optimizing a Laravel app, I primarily think about making it faster. And as we've discussed in a previous tip, usually if something is slow, it's the database. But last week, I saw an article with the provocative title "Fast database queries are not always better".
My initial reaction was "HUH??" but the author, Tim MacDonald, made some really good points. And as a bonus, he explained the relatively new
DB::whenQueryingForLongerThan feature in Laravel, and how you can use it effectively. I highly encourage you to give a read.
Here to help,
P.S. Wish you could ship new features more quickly? We can help.