Abstract
As people work with the data in your databases, they make changes. They may be inserting new information, deleting information they no longer need, or modifying other information, or all of the above. As the data changes, these changes directly affect your indexes, both rowstore and columnstore, albeit in different ways. For your rowstore indexes, the acts of modifying the data can lead to page splits, pages getting rearranged, and pages getting emptied, all summed up in a term called fragmentation. In your columnstore indexes, you’re not dealing with the same kind of fragmentation, but you are dealing with the deltastore, marking data that has been deleted, or keeping updated and inserted data ready for when it gets pivoted and compressed. Fragmentation can, in some circumstances, lead to performance degradation. Unfortunately, fixing fragmentation can also lead to performance degradation.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Fritchey, G. (2022). Dealing with Index Fragmentation. In: SQL Server 2022 Query Performance Tuning. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-8891-7_12
Download citation
DOI: https://doi.org/10.1007/978-1-4842-8891-7_12
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-8890-0
Online ISBN: 978-1-4842-8891-7
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)