seniorSQL

What is index fragmentation and how does it impact performance?

Updated May 17, 2026

Short answer

Index fragmentation occurs when index pages become disordered, reducing query efficiency.

Deep explanation

Index fragmentation happens when data is inserted, updated, or deleted, causing index pages to split or become non-contiguous. This leads to additional I/O operations because the database engine must traverse more pages. There are two types: internal fragmentation (wasted space inside pages) and external fragmentation (pages scattered on disk). High fragmentation increases query latency and reduces cache efficiency.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More SQL interview questions

View all →