Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColumnStore Index Fragmentation Issue #802

Open
rushabh138 opened this issue May 6, 2024 · 0 comments
Open

ColumnStore Index Fragmentation Issue #802

rushabh138 opened this issue May 6, 2024 · 0 comments

Comments

@rushabh138
Copy link

Description of the issue

We have observed a critical issue with CPU utilization on our SQL Server, resulting in server halts. After thorough investigation, it was discovered that the root cause of this problem is the fragmentation of ColumnStore indexes, particularly on priority tables with records exceeding 1000 page_count. Does script aims to checks fragmentation on ColumnStore indexes and automatically rebuilds them.

SQL Server version and edition
Execute SELECT @@VERSION
Microsoft SQL Server 2016 (SP2-CU17-GDR) (KB5014351) - 13.0.5893.48 (X64) May 24 2022 02:58:22 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Standard 10.0 (Build 14393: )

Version of the script
Check the header of the stored procedure
Version: 2018-06-27 20:44:12

What command are you executing?
EXECUTE dbo.IndexOptimize @databases = 'USER_DATABASES', @FragmentationLow = NULL, @FragmentationMedium = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', @FragmentationHigh = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', @FragmentationLevel1 = 5, @FragmentationLevel2 = 30, @UpdateStatistics = 'ALL', @OnlyModifiedStatistics = 'Y', @SortInTempdb = 'Y'

What output are you getting?
Update Statistics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants