Urgent.News

What's breaking now, across thousands of outlets.

Tech

Database Indexing & Query Performance

⚡ TL;DR: Understand why a query instant at 1,000 rows times out at 10 million. Use indexes where they help (and skip them where they hurt), read an EXPLAIN plan to see what the planner chose, and kill N+1 queries to win your speed back. Contents The query that worked yesterday What an index actually is How the database decides: planner vs scan When an index helps, and when it hurts Reading an…

The query that had worked months ago now suddenly began to time out as the underlying orders table grew from 1,000 rows to 10 million. This performance degradation had nothing to do with any code change; it was due to the fact that the database was forced to perform a full scan of the table instead of utilizing an index, which turned the once-instant query into an 8-second operation. To understand why this happened, we need to explore the concept of database indexes and how they impact query performance.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

This startup wants to turn idle user car inventory into rental revenue

When Igor Dobrianskyi looks at a car dealership lot, he doesn't see rows of cars — he sees millions of dollars just sitting there, depreciating, while people who only need a car for a few months are…

  • MyMonthlyCar connects idle cars with renters through online platform
  • Startup founded by Ukrainian co-founders Igor, Kostiantyn, and Vadym
  • Aims for 100 dealerships, $42M revenue in 5 years

An Icon API Should Be Able to Say “RTL Behavior Unknown

Right-to-left support creates an interesting problem for icon libraries. Some icons clearly depend on reading direction. Others clearly do not.

  • Right-to-left support complicates icon libraries, some icons need distinct RTL assets.
  • Icon aggregator must handle cases where RTL behavior is undocumented from various sources.
  • An API should return directionality metadata indicating source of information, not just direction.

More from Thursday 1 October →