{
  "id": 11241293,
  "title": "Database Indexing & Query Performance",
  "url": "https://urgent.news/2026/10/01/database-indexing-query-performance",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-01T17:12:59.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/sri2614/database-indexing-query-performance-1in8"
  },
  "original_language": "en",
  "account": "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.",
  "summary": "⚡ 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…",
  "key_points": [
    "Orders table grew from 1,000 to 10 million rows",
    "Database performed full scan instead of using index",
    "Query performance degraded from instant to 8 seconds"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}