Benjamin Crozat “Heard about Sevalla? They let you deploy PHP apps with ease.” Claim $50 →

1 minute read

Fast database queries are not always better

Tim MacDonald sheds new light on a commonly held belief in web development circles – that fast database queries are always good, and slow queries bad. MacDonald, an experienced developer, admitted to contributing to this confusion by failing to clearly explain a certain Laravel method.

In an interesting spin, he suggests that fast queries could actually slow down HTTP requests if they’re happening in mass in a single interaction. He then goes on to demonstrate a feature in Laravel that neatly tracks such cumulative query time, thus helping optimize resource usage.

Intrigued? Give Tim’s article a read!


Did you like this article? Then, keep learning:

Help me reach more people by sharing this article on social media!

0 comments

Guest

Markdown is supported.

Hey, you need to sign in with your GitHub account to comment. Get started →

Great deals for developers

Search for posts and links

Try to type something…