complexitydatabasessql
An index has a write and storage cost
Anonymous
An index can reduce rows scanned for a selective filter, depending on the query and the database's plan. Inserts and updates must maintain it, and it uses storage. Consider the query shape and selectivity rather than adding an index to every column.
0