Mid
From PDF
SQL
SQL & Databases
How does index fragmentation affect performance?
Short answer: Index fragmentation occurs when data is inserted, updated, or deleted, causing the index structure to become inefficient. This can negatively impact performance in several ways:
Real-world example (ShopNest)
ShopNest adds an index on Orders(CustomerId, CreatedAt) because “my recent orders” is queried constantly.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png