{
  "id": 15219999,
  "title": "Database Indexing – Part 1: How Indexes Help Find Data Faster",
  "url": "https://urgent.news/2026/10/17/database-indexing-part-1-how-indexes-help-find-data-faster",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-17T15:10:09.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/anusha_renangi_05a4e41d35/database-indexing-part-1-how-indexes-help-find-data-faster-2pk5"
  },
  "original_language": "en",
  "account": "The article explores the concept of database indexing, specifically how indexes in PostgreSQL help find data more efficiently. The author uses the analogy of an index in a book to illustrate the purpose of database indexes.\n\nTo demonstrate the efficiency of indexes, the author creates a large table named \"employees\" with three columns: id, name, and salary. By inserting 10 million records into this table, the author creates a scenario where searching for a specific record would take a considerable amount of time without an index.\n\nWhen searching for a specific record using the id column without an index, PostgreSQL would scan the entire table, checking each row to find the desired data. However, when an index is created on the id column, PostgreSQL can use the index to quickly locate the required record.\n\nThe article explains that an Index Only Scan is used when PostgreSQL can retrieve the required data directly from the index without accessing the full table records. This approach is much faster than scanning the entire table, especially when dealing with large datasets.\n\nThe author also explains the output of the EXPLAIN command, which provides detailed information about how PostgreSQL executes a query. This output includes information about the execution plan, estimated costs, actual execution times, and buffer usage.\n\nIn summary, the article highlights the importance of database indexing and demonstrates how indexes in PostgreSQL can significantly improve query performance by allowing the database to quickly locate specific records, just like an index in a book helps find information without reading every page.",
  "summary": "Recently, I was reading two books: Good Vibes, Good Life and The Mountain Is You . I usually forget things after some time 😅. So whenever I want to revisit something I've read, I go back to the book. But I noticed one difference between these two books. Good Vibes, Good Life has an index at the end of the book. Whenever I want to read about a particular topic, I can look at the index, find the…",
  "key_points": [
    "Database indexing improves data retrieval speed",
    "PostgreSQL uses indexes to locate records quickly",
    "Index Only Scan retrieves data directly from index"
  ],
  "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."
}