<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'denali', 'SQL 11', and 'Columnstore index'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=denali,SQL+11,Columnstore+index&amp;orTags=0</link><description>Search results matching tags 'denali', 'SQL 11', and 'Columnstore index'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SQL Server v.Next (&amp;quot;Denali&amp;quot;) : How a columnstore index is not like a normal index</title><link>http://sqlblog.com/blogs/aaron_bertrand/archive/2011/02/28/sql-server-v-next-denali-how-a-columnstore-index-is-not-like-a-normal-index.aspx</link><pubDate>Mon, 28 Feb 2011 17:34:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:33810</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;At the end of my Denali presentation at &lt;a href="http://sqlsaturday.com/65/eventhome.aspx" title="http://sqlsaturday.com/65/eventhome.aspx" target="_blank"&gt;SQL Saturday #65&lt;/a&gt; in Vancouver, a member of the audience asked, "What makes a columnstore index different from a regular nonclustered index?" At the end of a busy day, I was at a loss for an answer, and I'll explain why.&lt;/p&gt;&lt;p&gt;First, I'll briefly explain the basic, core, high-level functionality of a columnstore index (you can read a lot more details in &lt;a href="http://bit.ly/AB_Denali_ColumnWP" title="http://bit.ly/AB_Denali_ColumnWP" target="_blank"&gt;this white paper&lt;/a&gt;). Basically, instead of storing index data together on a page, it divvies up the data from each column into its own set of pages. If you are after the data from only one column, this doesn't provide a great advantage over a traditional index, since you're not going to be able to store that many more rows on a page.&lt;br&gt;&lt;/p&gt;&lt;p&gt;The reason I was having a hard time articulating the benefit is because I was thinking about a simple non-clustered index with one column, and comparing it to a columnstore index with only one column defined. The benefit of the columnstore index is that you can basically declare it against most or all of the columns in a table, effectively similar to creating an index on each column - and this is where column store indexes provide the largest benefit. The differences between a column store index and a handful of indexes for each column are (1) size due to the structure of the index and the fact that compression will likely work much better when you can fit more like values on a page, and (2) you only pay for the index maintenance on a columnstore index once, because of what I'll describe next.&lt;br&gt;&lt;/p&gt;&lt;p&gt;The columnstore index has limitations that definitely make you feel like the grass is greener on the other side. Most importantly, in Denali, due to the cost of maintenance, a columnstore index will be read only... essentially, you will need to rebuild the index when data changes. Some other limitations: only one columnstore index per table, the index must be partition-aligned, can't be filtered, and the base object must be a table (so, no indexed views).&lt;br&gt;&lt;/p&gt;&lt;p&gt;This feature is definitely geared to data warehouse scenarios, or where you are free to rebuild indexes nightly or on some other interval. I can't give you a good idea about the cost of maintaining this index manually compared to multiple traditional indexes, since the feature did not make the cut for the &lt;a href="http://bit.ly/AB_Denali_Download" title="http://bit.ly/AB_Denali_Download" target="_blank"&gt;publicly available CTP1&lt;/a&gt;. But I hope to publish some blog posts with real numbers on both the read and write sides when the next public CTP is made available. I am fairly certain I will be able to demonstrate cases where this type of index will drastically increase read performance (without losing substantial write performance), provided that you are in a scenario where you can update the data on an infrequent schedule, such as nightly.&lt;/p&gt;&lt;p&gt;If you want some detailed background on this technology, please check out Dr. David DeWitt's &lt;a href="http://bit.ly/eYzuYD" title="http://bit.ly/eYzuYD" target="_blank"&gt;PASS Summit 2009 keynote slide deck&lt;/a&gt;. And if you’re a PASS member, you can access the video at &lt;a href="http://www.sqlpass.org/LearningCenter/SessionRecordings/Summit2009/Day3KeynoteDavidDeWitt.aspx" title="http://www.sqlpass.org/LearningCenter/SessionRecordings/Summit2009/Day3KeynoteDavidDeWitt.aspx" target="_blank"&gt;sqlpass.org&lt;/a&gt; (login required). &lt;br&gt;&lt;/p&gt;&lt;p&gt;[I am currently at the MVP Summit, and I just want to clarify (in case anyone was wondering), none of the material I discuss above is in violation of NDA.] &lt;br&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>