You probably think fast database queries are good. On top of all of these "thinks" you have about database queries - there is a certain Laravel method that, if you have seen it, you probably think you understand…
If we were to use comparison as our measure again: a HTTP request that queries the database for 5ms is better than a HTTP request that queries the database for 1.5 seconds, right?
What if I make a HTTP request and there are no logs in my slow query log, is that good?
The above code executes a very fast database query, however it executes the query in a non-stop loop for 20 seconds.