Imagine you walk into a massive library with 10 million books, and someone asks you to find a book titled "The Silent Shore". Without any system, you'd have to check every single book one by one β that could take hours. But if the library has an alphabetical card catalog, you can jump straight to the "S" section and find it in seconds. Database indexes work exactly the same way. They are special data structures that allow the database engine to find rows quickly without scanning every row in a table. This guide will walk you through how indexes work under the hood, when to use them, when to avoid them, and how they apply to real-world system design problems.