Process Flow - Database indexes
Start Query
Check for Index
Yes / No?
Use Index
Return Results
End
When a query runs, the database checks if an index exists for the search. If yes, it uses the index to find data fast. If no, it scans the whole table, which is slower.