February 7, 2019 at 10:02 am
Hi all
Our devs are about to implement columnstore indexes on a couple of their DBs. I've been thinking about what maintenance might be required to maintain them. We use Ola Hallengren's IndexOptimize proc for index maintenance, but it appears to be excluding ColumnStore indexes. I've come across some articles that suggest there is some maintenance to be done, e.g.
https://blog.greglow.com/2015/01/10/rebuild-clustered-columnstore-indexes-when-they-require-maintenance/But also another where there is nothing to be done:
https://www.dcac.com/blog/database-maintenance-and-columnstore-indexes
Anyone with Columnstore index experience care to share what you are currently doing for maintenance, if anything?
Thanks!
Doodles
February 8, 2019 at 6:47 am
You are going to want to rebuild columnstore indexes on some sort of basis. This does two things. It helps to condense the columns down so that the compression works best. Also, it gets rid of all the data in the delta stores, again, improving compression and overall performance. Also, keep the statistics up to date.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
February 8, 2019 at 9:36 am
Grant Fritchey - Friday, February 8, 2019 6:47 AMYou are going to want to rebuild columnstore indexes on some sort of basis. This does two things. It helps to condense the columns down so that the compression works best. Also, it gets rid of all the data in the delta stores, again, improving compression and overall performance. Also, keep the statistics up to date.
Is there a measurement that can be taken on such things to determine when rebuilding columnstore indexes would actually benefit from a rebuild?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 8, 2019 at 11:53 am
Jeff Moden - Friday, February 8, 2019 9:36 AMIs there a measurement that can be taken on such things to determine when rebuilding columnstore indexes would actually benefit from a rebuild?
Yes. Here's an article introducing it.
The goal is to have an even distribution of rows across the total_rows.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
February 8, 2019 at 12:01 pm
Grant Fritchey - Friday, February 8, 2019 11:53 AM
Did you forget the article?
February 8, 2019 at 12:25 pm
Luis Cazares - Friday, February 8, 2019 12:01 PMGrant Fritchey - Friday, February 8, 2019 11:53 AMJeff Moden - Friday, February 8, 2019 9:36 AMIs there a measurement that can be taken on such things to determine when rebuilding columnstore indexes would actually benefit from a rebuild?
Yes. Here's an article introducing it.
The goal is to have an even distribution of rows across the total_rows.
Did you forget the article?
Ooops. Give me a sec.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
February 8, 2019 at 12:26 pm
Luis Cazares - Friday, February 8, 2019 12:01 PMDid you forget the article?
Updated it.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
February 8, 2019 at 2:31 pm
Thanks, Grant. Dmitri's article is going to take me some time to digest because I don't use column store... at least, not yet.
--Jeff Moden
Change is inevitable... Change for the better is not.
February 11, 2019 at 3:02 am
Thanks for response Grant. I've not used ColumnStore Indexes before and taking a while to wrap my head around it.
My next question is - any DBAs out there who have configured maintenance jobs for ColumnStore indexes and wish to share their insights? Is there something standard that we can implement?
Thanks
Doodles
February 11, 2019 at 7:33 am
doodlingdba - Monday, February 11, 2019 3:02 AMThanks for response Grant. I've not used ColumnStore Indexes before and taking a while to wrap my head around it.My next question is - any DBAs out there who have configured maintenance jobs for ColumnStore indexes and wish to share their insights? Is there something standard that we can implement?
Thanks
Doodles
The single greatest resource on Columnstore apart from what Microsoft offers (and that is pretty good) is Niko Negebauer. Here is his 127 part (and growing) series on the topic. More information than you can shake a stick at. We also have some very good articles here on SQL Server, specifically in the Stairways series. I'd suggest going there too.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
February 13, 2019 at 8:15 am
Thanks Grant, i shall have a read!
Doodles
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply