I created an easy to use API to help businesses do incredible things with AI.
Databases

Fast database queries are not always better

Benjamin Crozat
Published on Sep 2, 2023 0 comments Edit on GitHub

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!

Learn more on timacdonald.me

Be the first to comment!

Get help or share something of value with other readers!

Great deals for enterprise developers
  • Summarize and talk to YouTube videos. Bypass ads, sponsors, chit-chat, and get to the point.
    Try Nobinge →
  • Monitor the health of your apps: downtimes, certificates, broken links, and more.
    20% off the first 3 months using the promo code CROZAT.
    Try Oh Dear for free
  • Keep the customers coming; monitor your Google rankings.
    30% off your first month using the promo code WELCOME30
    Try Wincher for free →
The latest community links
- / -