Index Magic: Rowstore, Columnstore and NoStore
2015TL; DR
Indexes allow SQL Server to access your data in the most efficient manner and improve performance by orders of magnitude. This seminar looks at 3 kinds of index structures: B-Tree indexes, columnstore indexes, and indexes used for in-memory tables.
Session Details
Indexes allow SQL Server to access your data in the most
efficient manner. In fact, indexes are the only tuning technique that can
improve query performance by orders of magnitude, so that queries that might
have taken hours to run can be reduced to sub-second execution time. Understanding
exactly how your indexes are structured and stored internally can give you a
deeper understanding of what indexes will be useful for your queries.
SQL Server 2014 provides three very different
kinds of index structures, useful for different purposes in different kinds of
applications.
Knowing how indexes are useful, and how each type is stored
and managed can allow us to generalize some best practice recommendations.
In this seminar we’ll look at the following
topics:
- B-Tree Index Structures
- Clustered vs nonclustered
- Unique vs non-unique
- Included columns
- B-Tree maintenance: splits, fragmentation and defragmenting
- Best practices
-
Columnstore Index Storage
- Nonclustered columnstore
- Clustered updateable columnstore
- Management of columnstore indexes
- Best practices
-
In-memory Index Structures
- Memory-optimized tables
- Storage and management of indexes for memory-optimized tables
- Best practices
- Compare and contrast
- How to choose
3 things you'll get out of this session
Speakers
Kalen Delaney's previous sessions
Behind the Query Store…
Look inside Query Store to see what it does and how it works
Exploring Statistics: Where estimated rowcount comes from
A look inside SQL Server distribution statistics
What Happened? Exploring the Plan Cache
In this session, we'll explore SQL Server's plan cache, including techniques for discovering what plans are in cache, how often they've been run, and whether they contain any sub-optimal operators. Knowing what's happened is the first step in tuning.
Seeking SQL Server Secrets
In this session, I’ll tell you about some of my favorite undocumented features, and also tell you some of my tricks for discovering more undocumented secrets.