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 Manager of Information Systems MVP, MCSA, MCDBA, MCTS, MCITP.
Ashwani Roy Understanding Graphical Execution Plans Level 200.
Denny Cherry twitter.com/mrdenny.
T-SQL: Simple Changes That Go a Long Way DAVE ingeniousSQL.com linkedin.com/in/ingenioussql.
Data Management Conference Performance & Scalability Simon Sabin London September 29th.
Indexing Fundamentals Steve Hood SimpleSQLServer.com.
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
Fun with SQL Server Spatial Data
CS 540 Database Management Systems
SQL Server Query and Index Tuning
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
Database Management  .
Reading Execution Plans Successfully
Database Administration for the Non-DBA
SQL Server May Let You Do It, But it Doesn’t Mean You Should
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
Table Indexing for the .NET Developer
CS222P: Principles of Data Management Notes #6 Index Overview and ISAM Tree Index Instructor: Chen Li.
TSQL Coding Techniques
Re-Indexing - The quest of ultimate automation
Indexing Fundamentals
Indexes: The Basics Kathi Kellenberger.
Reading Execution Plans Successfully
Table Partitioning Intro and make that a sliding window too!
Indexing for Beginners
In Memory OLTP Not Just for OLTP.
The PROCESS of Queries John Deardurff Website: ThatAwesomeTrainer.com
Indexing For Optimal Performance
Stretch Database - Historical data storage in SQL Server 2016
The PROCESS of Queries John Deardurff
Denny Cherry twitter.com/mrdenny
Table Partitioning Intro and make that a sliding window too!
CS222/CS122C: Principles of Data Management Notes #6 Index Overview and ISAM Tree Index Instructor: Chen Li.
Clustered Columnstore Indexes (SQL Server 2014)
Table Partitioning Intro and make that a sliding window too!
Physical Storage Structures
EXECUTION PLANS Quick Dive.
Execution plans Eugene
The Ins and Outs of Indexes
Tracking Index Usage Like a Pro
The Five Mistakes You are Probably Making with SQL Server
Reading execution plans successfully
Why should I care about SQL, if I have ORM?
CS222/CS122C: Principles of Data Management UCI, Fall 2018 Notes #05 Index Overview and ISAM Tree Index Instructor: Chen Li.
All about Indexes Gail Shaw.
The Ins and Outs of Indexes
XML? What’s this doing in my database? Adam Koehler
Presentation transcript:

The Ins and Outs of Indexes Indexing Basics in SQL Server Mindy Curnutt TMW Systems, Inc. VP, Information Management SQL Server MVP Twitter: @sqlgirl

About Me Wife & Mother Busy-Bee Musician Soap Making Baking Crocheting Business Owner Event Planning

About Me VP, Information Management, TMW SQL Server MVP SQL Server since 6.5 / 1995 (20 Years) SQLPASS Speaker, 2005, 2012, 2013, 2015 PASS Program Manager 2015 Twitter: @sqlgirl Email: mindycurnutt@hotmail.com

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

Q U E S T I O N S Mindy Curnutt p: 440.721.2819 e: mindycurnutt@hotmail.com twitter handle: @sqlgirl M O V I N G Y O U F O R W A R D T H A N K Y O U