In short
If indexes make reads fast, why not index every column? Because every index is extra work on every write, and some of them never help a single query.
Every index must be updated on each INSERT, UPDATE and DELETE and takes disk space, so too many indexes slow writes. Indexes on low-variety columns or on small tables often go unused.

Think of it like this
The shop with eight registers
A hardware shop in Ludhiana keeps one register by customer, one by date, one by item, one by supplier and four more. Finding things is easy, but every sale must now be written eight times, the counter is buried in books and the queue grows. A few well-chosen registers would serve the shop better. Indexes are the same trade-off.
Watch it happen
One INSERT, many writes
1/6The app inserts one new order for ₹899 from Indore.
The big ideas
What you need to know
Writes pay for every index
Each INSERT, DELETE, and many UPDATEs must change every index on the table, so bulk loads slow down most.
Space and memory
Indexes take disk space and compete for memory cache. Big unused ones push useful data out of memory.
Low-variety columns
An index on is_active (true or false) rarely helps, because a filter on it still matches half the table.
Tiny tables
A table with 200 rows is read in one go. The planner skips the index, so it is just extra baggage.
See it in code
Walk through the code
1-- Indexes never used since statistics were last reset2SELECT relname AS table_name,3 indexrelname AS index_name,4 idx_scan,5 pg_size_pretty(pg_relation_size(indexrelid)) AS index_size6FROM pg_stat_user_indexes7WHERE idx_scan = 08ORDER BY pg_relation_size(indexrelid) DESC;9 10-- Is this column worth indexing? Check how varied it is11SELECT is_active, COUNT(*)12FROM customers13GROUP BY is_active;14 15-- Drop an unused, non-constraint index16DROP INDEX CONCURRENTLY IF EXISTS idx_orders_status;1/3pg_stat_user_indexes counts how many times each index was scanned. Zero scans and a big size is a strong drop candidate.
PostgreSQL statistics views. In MySQL 8, the sys.schema_unused_indexes view gives a similar list. Check usage over a full business cycle, like a month-end, before dropping anything.
Save yourself the pain
Common mistakes
Oops
Adding an index for every column 'just in case'.
Do this instead
Index the columns your real slow queries filter, join or sort on, and nothing else.
Oops
Dropping a unique index because idx_scan is zero.
Do this instead
Unique and primary key indexes enforce rules even when no query reads them. Keep them.
Oops
Loading 50 lakh rows into a table with six indexes in place.
Do this instead
For big one-time loads, drop the secondary indexes, load, then recreate them. It's usually much faster overall.
Your mission
Index audit
Quick check
Why does adding more indexes slow down INSERTs?
Go deeper
- 1Find unused indexes with your database's statistics views (pg_stat_user_indexes in PostgreSQL, sys schema in MySQL).
- 2Measure insert speed on a table with and without several indexes.
- 3Only add an index for a real, frequent query you have checked with EXPLAIN.
More topics at this stop
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.