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.
SQL SERVER DAYS 2011 Indexing Internals Denny Cherry twitter.com/mrdenny.
How to kill SQL Server Performance Håkan Winther.
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.
Indexing strategies and good physical designs for performance tuning Kenneth Ureña /SpanishPASSVC.
SQL Server Performance Tuning
3 Methods to End the Madness
Chris Index Feng Shui Chris
Benchmarking like a PRO
Fun with SQL Server Spatial Data
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
Introduction to SQL Server Management for the Non-DBA
Reading Execution Plans Successfully
Beginner Table Partitioning
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
Getting To Know Your Indexes
Fun with SQL Server Spatial Data
Now where does THAT estimate come from?
TSQL Coding Techniques
Query Optimization Techniques
dbatools - PowerShell and SQL Server Working Together
SQL Server Mythconceptions And Mythteries
Indexing Fundamentals
Indexes: The Basics Kathi Kellenberger.
The Ins and Outs of Indexes
Table Partitioning Intro and make that a sliding window too!
Hugo Kornelis Now where does THAT estimate come from? The nuts and bolts of cardinality estimation.
Please thank our sponsors!
SQL Server Performance Tuning Nowadays
SQL Server Mythconceptions And Mythteries
Indexing for Beginners
Transact SQL Performance Tips
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
Parameter Sniffing: the Good, the Bad, and the Ugly
Moving from SQL Profiler to xEvents
Denny Cherry twitter.com/mrdenny
Table Partitioning Intro and make that a sliding window too!
Please Support our Sponsors
Clustered Columnstore Indexes (SQL Server 2014)
Parameter Sniffing: the Good, the Bad, and the Ugly
Table Partitioning Intro and make that a sliding window too!
EXECUTION PLANS Quick Dive.
The Ins and Outs of Indexes
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.
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 VP, Information Management, TMW 3X SQL Server/Data Platform MVP Idera Ace 2016-2017 SQL Server since 6.5 / 1995 (20 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.

Our Sponsors: Gold Sponsors: Silver Sponsors: Personal Sponsors: Bronze Sponsors: Personal Sponsors:

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

Evaluate Speaker/Session Evaluate the Event Questions? Mindy Curnutt Twitter: @sqlgirl Email: mindycurnutt@hotmail.com Evaluate Speaker/Session Evaluate the Event Use Bar Code!!! Evaluate us on “Joind.in”