Why does the presence of primary key on the table significantly enhance the performance of column-store indexes?
问题 I was trying to see the kind of performance gains column-store indexes can provide on a table. The table has about a 3.7 million rows, 11 columns and is stored as a heap (i.e without a primary key). I create a column-store index on the table and run the following query: SELECT [Area], [Family], AVG([Global Sales Value]) AS [Average GlobalSalesValue], COUNT([Projected Sales]) FROM dbo.copy_Global_Previous5FullYearSales WHERE [Year] > 2012 GROUP BY [Area], [Family] The create table statement is