I have some very large partitioned tables in SQL Server 2014 that are using clustered columnstore indexes. These tables are partitioned by year, and past years are never touched. I only need to ever rebuild the current partition (in this case, 2017).
I googled and found a bunch of sites that reference this question, but before I set up my new maintenance scripts, I wanted to be sure I understood it correctly.
Lets say I'm running this command:
ALTER INDEX [ClusteredColumnstore_myindex] ON [dbo].[mytable] REBUILD PARTITION=7;
If I have incremental statistics enabled for my partitioned table, when I rebuild the clustered columnstore index on the 2017 partition (partition 7), does SQL Server only rebuild the incremental statistics for that partition, or does it resample and rebuild on all partitions? I only want to rebuild on the...