SQL Server Columnstore Performance Tuning

Batch object
bitmap of qualifying rows
Column vectors
8
column_id
segment_id
min_data_id
max_data_id
1
1
20120101
20120131
1
2
20120115
20120215
1
3
20120201
20120228
select Date, count(*)
from dbo.Purchase
where Date >= 20120201
group by Date
partition 1
Date = 20120301
segment 1 min(Date) = 20120301, max(Date) = 20120301
segment 2 “
segment 3 “
segment 4 “
segment 5 “
partition 2
Date = 20120302
segment 1 min(Date) = 20120302, max(Date) = 20120302
segment 2 “
segment 3 “
segment 4 “
segment 5 “
select f.region_id,
avg(f.duration)
from fact_CDR f
where f.region_id = 1
and f.date_id between
20120101 and 20120131
group by f.region_id
Date
LicenseNum
Measure
20120301
XYZ123
100
20120302
ABC777
200
Date
LicenseId
Measure
20120301
1
100
20120302
2
200
LicenseId
LicenseNum
1
XYZ123
2
ABC777
http://social.technet.microsoft.com/wiki/contents/articles/sqlserver-columnstore-performance-tuning.aspx
http://social.technet.microsoft.com/wiki/contents/articles/sqlserver-columnstore-index-faq.aspx
TechEd 2011 session DBI312
mva
http://northamerica.msteched.com
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn