Advertisement
Intermediate SQL Server, Columnstore Indexes

What kinds of workloads benefit the most from columnstore indexes, and which workloads should avoid them?

Short answer

Columnstore indexes excel at analytical workloads that scan large amounts of data and aggregate results, such as data warehouse reporting, but they are generally a poor fit for transactional workloads with frequent single row inserts, updates, and deletes, since those operations…

Save SQL Server mock interview
Advertisement
AModel answer
Columnstore indexes excel at analytical workloads that scan large amounts of data and aggregate results, such as data warehouse reporting, but they are generally a poor fit for transactional workloads with frequent single row inserts, updates, and deletes, since those operations are less efficient against columnstore's batch oriented design.
-- Good fit: large analytical queries scanning many rows
SELECT ProductCategory, SUM(Amount) FROM SalesFact GROUP BY ProductCategory;

-- Poor fit: frequent single row updates
UPDATE Orders SET Status = 'Shipped' WHERE OrderId = 12345;
Real-world example
A company keeps its transactional orders table on a regular rowstore index for fast individual updates, while moving completed historical order data into a separate columnstore indexed table optimized purely for reporting.
Likely follow-ups
  • Why do frequent single row updates perform poorly against columnstore indexes?
  • Is there a way to get good performance for both transactional and analytical needs on the same table?
Related topics