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.
Azure SQL DW – Elastic Data Analytics in the cloud Josh Sivey | Microsoft TSP #492 | Phoenix.
OM. Platinum Level Sponsors Gold Level Sponsors Pre Conference Sponsor Venue Sponsor Key Note Sponsor.
APRIL 13 th Introduction About me Duško Mirković 7 years of experience.
Execution Plans Detail From Zero to Hero İsmail Adar.
Carlos Bossy Quanta Intelligence SQL Server MCTS, MCITP BI CBIP, Data Mining Real-time Data Warehouse and Reporting Solutions.
SQL Server Performance Tuning
3 Methods to End the Madness
Chris Index Feng Shui Chris
Fun with SQL Server Spatial Data
SQL Server Query and Index Tuning
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
Hustle and Bustle of SQL Pages
Reading Execution Plans Successfully
Beginner Table Partitioning
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
Getting To Know Your Indexes
The Key to the Database Engine
Fun with SQL Server Spatial Data
Now where does THAT estimate come from?
TSQL Coding Techniques
Re-Indexing - The quest of ultimate automation
Indexing Fundamentals
Indexes: The Basics Kathi Kellenberger.
The Ins and Outs of Indexes
Table Partitioning Intro and make that a sliding window too!
Please thank our sponsors!
Indexing for Beginners
Transact SQL Performance Tips
In Memory OLTP Not Just for OLTP.
Kerberos for SSRS made Simple
Indexing For Optimal Performance
Stretch Database - Historical data storage in SQL Server 2016
Cyndi Johnson Senior Software Engineer at AdvancedMD Killing Cursors.
Moving from SQL Profiler to xEvents
Denny Cherry twitter.com/mrdenny
Table Partitioning Intro and make that a sliding window too!
Clustered Columnstore Indexes (SQL Server 2014)
Table Partitioning Intro and make that a sliding window too!
EXECUTION PLANS Quick Dive.
Execution plans Eugene
The Ins and Outs of Indexes
Tracking Index Usage Like a Pro
Cyndi Johnson Senior Software Engineer at AdvancedMD Killing Cursors.
The Five Mistakes You are Probably Making with SQL Server
Why should I care about SQL, if I have ORM?
Why most Candidates fail the Interview in the first five Minutes
42 TSQL Functions =tg= Thomas Grohser SQL Saturday
All about Indexes Gail Shaw.
The Ins and Outs of Indexes
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 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

Platinum Level Sponsors Gold Level Sponsors Venue Sponsor Key Note Sponsor Pre Conference Sponsor

Silver Level Sponsors Bronze Level Sponsors

Mindy Curnutt Director, Database Architecture, TMW Systems Q U E S T I O N S Mindy Curnutt Director, Database Architecture, TMW Systems p: 440.721.2819 e: mcurnutt@tmwsystems.com 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