Introduction
Indexes help the database find data faster, like a shortcut in a book's table of contents.
When you want to speed up searches on a large table.
When you often filter data by certain columns.
When you join tables on specific columns.
When you sort data by a column frequently.
When you want to avoid scanning the whole table for queries.