Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Ins and Outs of Indexes

Similar presentations


Presentation on theme: "The Ins and Outs of Indexes"— Presentation transcript:

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

2 About Me VP, Information Management, TMW
3X SQL Server/Data Platform MVP Idera Ace SQL Server since 6.5 / 1995 (20 Years) PASS Summit Speaker, 2005, PASS Program Manager 2015 & 2016

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

4 Agenda Objectives Clustered Indexes Non Clustered Indexes

5 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

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

7 Agenda Objectives Clustered Indexes Non Clustered Indexes

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

9 Clustered Indexes Desired Qualities Narrow Data Type Unique Static
Increasing

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

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

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

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

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

15 Agenda Objectives Clustered Indexes Non Clustered Indexes

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

17 Bookmark (Key/RID) Lookup

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

19 Questions? Mindy Curnutt Event & Session Evals – ONLINE ONLY Event: Session:


Download ppt "The Ins and Outs of Indexes"

Similar presentations


Ads by Google