Download presentation
Presentation is loading. Please wait.
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
3
Thank You Idera! My speaking to you today was made possible through
the Idera ACE program.
4
Our Sponsors: Gold Sponsors: Silver Sponsors: Personal Sponsors:
Bronze Sponsors: Personal Sponsors:
5
Agenda Objectives Clustered Indexes Non Clustered Indexes
6
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
7
Types of Indexes The Basics Clustered Non Clustered Unique
Getting Fancy (not in this presentation) Filtered Full-Text Spatial XML
8
Agenda Objectives Clustered Indexes Non Clustered Indexes
9
Clustered Indexes Clustered Index – sort order of the data within the table on the hard drive and in memory. One per table
10
Clustered Indexes Desired Qualities Narrow Data Type Unique Static
Increasing
11
Clustered Indexes Narrow Data Type Less Data Duplicated Smaller…
Databases Backups Maintenance Plan Times Scans
12
Clustered Indexes Unique Not Required Prevents Uniqueifier
Best to be Narrow…remember?
13
Clustered Indexes Static Changes cause…
Additional overhead for Non Clustered Indexes Clustered Index Fragmentation A Bit of Advice? Bad Idea
14
Clustered Indexes Increasing Data is added to the end of the index
Reduces fragmentation
15
Clustered Indexes Demos No Clustered Index (Heap)
Non Unique Clustered Index Unique Clustered Index
16
Agenda Objectives Clustered Indexes Non Clustered Indexes
17
Non Clustered Indexes For Common Queries
Link to Clustered Indexes or Heap through Key or RID Bookmark Lookup
18
Bookmark (Key/RID) Lookup
19
Non Clustered Indexes Demo Bookmark (Key/RID) Lookup Covering Index
20
Evaluate Speaker/Session Evaluate the Event
Questions? Mindy Curnutt Evaluate Speaker/Session Evaluate the Event Use Bar Code!!! Evaluate us on “Joind.in”
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.