Concept Flow - When indexes help and when they hurt
Query arrives
Check for index on columns used
Use index
Fast search
Return results
Consider index maintenance cost on writes
When a query runs, the database checks if an index can speed up searching. Using an index helps read speed but can slow down writes because indexes need updating.