The Ins and Outs of Indexes

Slides:



Advertisements
Similar presentations
Denny Cherry Manager of Information Systems MVP, MCSA, MCDBA, MCTS, MCITP.
Advertisements

10 Things Not To Do With SQL SQLBits 7. Some things you shouldn’t do.
A HEAP OF CLUSTERS A look into heaps vs. clustered tables Ami Levin CTO, DBSophic X.
Denny Cherry twitter.com/mrdenny.
Denny Cherry Manager of Information Systems MVP, MCSA, MCDBA, MCTS, MCITP.
Ashwani Roy Understanding Graphical Execution Plans Level 200.
Table Indexing for the.NET Developer Denny Cherry twitter.com/mrdenny.
Denny Cherry twitter.com/mrdenny.
Denny Cherry twitter.com/mrdenny.
T-SQL: Simple Changes That Go a Long Way DAVE ingeniousSQL.com linkedin.com/in/ingenioussql.
SQL SERVER DAYS 2011 Table Indexing for the.NET Developer Denny Cherry twitter.com/mrdenny.
SQL SERVER DAYS 2011 Indexing Internals Denny Cherry twitter.com/mrdenny.
How to kill SQL Server Performance Håkan Winther.
APRIL 13 th Introduction About me Duško Mirković 7 years of experience.
Scott Fallen Sales Engineer, SQL Sentry Blog: scottfallen.blogspot.com.
Execution Plans Detail From Zero to Hero İsmail Adar.
Doing fast! Optimizing Query performance with ColumnStore Indexes in SQL Server 2012 Margarita Naumova | SQL Master Academy.
Indexing strategies and good physical designs for performance tuning Kenneth Ureña /SpanishPASSVC.
3 Methods to End the Madness
Chris Index Feng Shui Chris
Curacao SQL Saturday June 11, 2016
Fun with SQL Server Spatial Data
How Good Is Your Indexing Strategy?
UFC #1433 In-Memory tables 2014 vs 2016
T-SQL Coding Techniques Are you playing with fire?
T-SQL: Simple Changes That Go a Long Way
Understanding & Using Spatial Data Features in SQL Server
Using Extended Events to Diagnose Application Issues
Inside of SQL Server Indexes
Parameter Sniffing in SQL Server Stored Procedures
Reading Execution Plans Successfully
The Top 5 SQL Server Mistakes
Database Administration for the Non-DBA
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Power BI Performance …Tips and Techniques.
The Ins and Outs of Indexes
Marcos Freccia Stop everything! Top T-SQL tricks to a developer
The Ins and Outs of Indexes
Getting To Know Your Indexes
The Key to the Database Engine
Fun with SQL Server Spatial Data
Now where does THAT estimate come from?
Table Indexing for the .NET Developer
TSQL Coding Techniques
SQL Server Mythconceptions And Mythteries
Indexing Fundamentals
Indexes: The Basics Kathi Kellenberger.
The Ins and Outs of Indexes
Reading Execution Plans Successfully
Table Partitioning Intro and make that a sliding window too!
SQL Server Mythconceptions And Mythteries
Indexing for Beginners
In Memory OLTP Not Just for OLTP.
Introduction to reading execution plans
Indexing For Optimal Performance
Stretch Database - Historical data storage in SQL Server 2016
Denny Cherry twitter.com/mrdenny
Table Partitioning Intro and make that a sliding window too!
Table Partitioning Intro and make that a sliding window too!
EXECUTION PLANS Quick Dive.
The Ins and Outs of Indexes
Top 5 TIPS TO KEEP Always on AGs humming and users happy
Tracking Index Usage Like a Pro
The Five Mistakes You are Probably Making with SQL Server
Why should I care about SQL, if I have ORM?
All about Indexes Gail Shaw.
SQL Server Indexing for the Client Developer
XML? What’s this doing in my database? Adam Koehler
An Introduction to Partitioning
Presentation transcript:

The Ins and Outs of Indexes Indexing Basics in SQL Server Mindy Curnutt Mindy Curnutt & Associates Consulting Microsoft Data Platform MVP Twitter: @sqlgirl

About Me Independent Consultant 3X SQL Server/Data Platform MVP Idera Ace 2016-2017 SQL Server since 6.5 / 1995 (22 Years) PASS Summit Speaker, 2005, 2012-2015 PASS Program Manager 2015-2017 Twitter: @sqlgirl Email: mindycurnutt@hotmail.com

Thank You Idera! My speaking to you today was made possible through the Idera ACE program.

Agenda Objectives Clustered Indexes Non Clustered Indexes

Objectives Understand how to create effective and efficient indexes Clustered Index Learn what are they and why important? Non Clustered Indexes When and how are they used? What are Included Columns? Uniqueness Why you should care

Types of Indexes The Basics Clustered Non Clustered Unique Getting Fancy (not in this presentation) Filtered Full-Text Spatial XML

Agenda Objectives Clustered Indexes Non Clustered Indexes

Clustered Indexes Clustered Index – sort order of the data within the table on the hard drive and in memory. One per table

Clustered Indexes Desired Qualities Narrow Data Type Unique Static Increasing

Clustered Indexes Narrow Data Type Less Data Duplicated Smaller… Databases Backups Maintenance Plan Times Scans

Clustered Indexes Unique Not Required Prevents Uniqueifier Best to be Narrow…remember?

Clustered Indexes Static Changes cause… Additional overhead for Non Clustered Indexes Clustered Index Fragmentation A Bit of Advice? Bad Idea

Clustered Indexes Increasing Data is added to the end of the index Reduces fragmentation

Clustered Indexes Demos No Clustered Index (Heap) Non Unique Clustered Index Unique Clustered Index

Agenda Objectives Clustered Indexes Non Clustered Indexes

Non Clustered Indexes For Common Queries Link to Clustered Indexes or Heap through Key or RID Bookmark Lookup

Bookmark (Key/RID) Lookup

Non Clustered Indexes Demo Bookmark (Key/RID) Lookup Covering Index

Questions? Mindy Curnutt Twitter: @sqlgirl Email: mindycurnutt@hotmail.com