seniorT-SQL

What is index fragmentation and how does it affect query performance?

Updated May 17, 2026

Short answer

Index fragmentation occurs when logical page order diverges from physical storage order.

Deep explanation

Fragmentation happens due to page splits during inserts/updates and causes inefficient IO patterns. Logical fragmentation increases random reads, reducing cache efficiency. SQL Server measures fragmentation using DMV outputs, and mitigation includes rebuilds or reorganizations depending on severity.

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 T-SQL interview questions

View all →