Index fragmentation is, perhaps, one of those rare topics that does not entirely belong to the “it depends” category. Every database professional agrees that fragmentation negatively affects the system. While that is correct, it is still important to understand the downside of index fragmentation and analyze how your system is affected by it.
In this chapter, we will talk about internal and external index fragmentation in SQL Server, what code and design patterns increase the fragmentation, and what factors must be taken into account when designing an index maintenance strategy.
Types of Fragmentation
As you will ...