Tracking Index Usage Like a Pro

Slides:



Advertisements
Similar presentations
ManageEngine ® SQLDBManager Plus - Product Overview.
Advertisements

© 2012 IBM Corporation What’s new in OpenAdmin Tool for Informix? Erika Von Bargen May 2012.
Utility Database Chris
ManageEngine ® SQLDBManager Plus - Product Overview.
Developers of a suite of products to help you monitor and optimize Windows/SQL Server performance o Performance Advisor – awareness and control over Windows.
Intro to SQL Server Performance Tuning By Robert Biddle.
Effective Indexes For Beginners. Performance is slow Let’s add another index!
Diving into Query Execution Plans ED POLLACK AUTOTASK CORPORATION DATABASE OPTIMIZATION ENGINEER.
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Database Design: Solving Problems Before they Start! Ed Pollack Database Administrator CommerceHub.
Memory-Optimized Tables Querying at the speed of light.
Smarter Technology for Better Business
Chris Index Feng Shui Chris
An introduction to Wait Statistics
You Inherited a Database Now What?
Curacao SQL Saturday June 11, 2016
Query Optimization Techniques
Dynamic SQL Writing Efficient Queries on the Fly
Execution Planning for Success
Get to know SQL Manager SQL Server administration done right 
Lecture 16: Data Storage Wednesday, November 6, 2006.
UFC #1433 In-Memory tables 2014 vs 2016
Dynamic SQL: Writing Efficient Queries on the Fly
Efficiently Searching Schema in SQL Server
Reading execution plans successfully
Building Effective Backups
Mapping Shema and Recursively Managing Data
Introduction to SQL Server Management for the Non-DBA
Reading Execution Plans Successfully
Marcos Freccia Stop everything! Top T-SQL tricks to a developer
Dynamics AX Performance
Third Party Tools for SQL Server
Performance Tuning for Mere Mortals Part II
Cardinality Estimator 2014/2016
Making PowerShell Useful
Query Optimization Techniques
Migrating your SQL Server Instance
SQL Server and PowerShell Let’s Get Serious
Execution Plans Demystified
SQL Server 2016 Query Data Store
Statistics: What are they and How do I use them
Performance Tuning for Mere Mortals Part II
The Ins and Outs of Indexes
Reading Execution Plans Successfully
Dynamic SQL: Writing Efficient Queries on the Fly
SQL Server Query Plans Journeyman and Beyond
Please thank our sponsors!
Transact SQL Performance Tips
SharePoint Permissions Manager
Welcome to SQL Saturday Denmark
Stretch Database - Historical data storage in SQL Server 2016
Your code is not just…your code
Finding Islands, Gaps, and Clusters in Complex Data
Four Rules For Columnstore Query Performance
You Inherited a Database Now What?
Tracking Usage of Analysis Services with SharePoint
Insight into the SQL Server Buffer Cache
Diving into Query Execution Plans
Tracking Index Usage Like a Pro
Finding Islands, Gaps, and Clusters in Complex Data
Query Optimization Techniques
Creating and Using Calendar Tables
Reading execution plans successfully
Office 365 Development July 2014.
Sql Saturday Philadelphia
Workshop: High Level Reporting
The Ins and Outs of Indexes
Finding Islands, Gaps, and Clusters in Complex Data
Your code is not just…your code
Presentation transcript:

Tracking Index Usage Like a Pro Ed Pollack Sr. Database Administrator Datto

Agenda Understanding Index Usage to Optimize Performance: Introduction. Quick review of indexes. Index usage stats tracking & demo. Missing index usage tracking & demo. Conclusion. Questions!? Where to find me.

Introduction (aka: why are we here?) Indexes are key to query performance. No index = slow, inefficient performance*. *Assuming that is not what you want. Too many indexes waste space and slow down writes. System views are available to track usage. System views are available to track missing indexes.

Quick Index Review Indexes are structures that organize data and optimize it for specific types of queries. Indexes speed up reads that use them effectively (seeks). Indexes slow down writes when they need updating. Indexes consume disk space and require maintenance. TableClustered IndexNonclustered Indexes Also: Columnstore (CI & NCI), XML, Spatial, Hash.

Why Do We Want This? Improve performance/optimize before trouble strikes! 3rd party tools for this purpose typically are… expensive not very customizable bundled with stuff you don’t want/need not able to handle your use-case It’s free! You can alter/use it however you want.

Index Usage Statistics Demo

Missing Index Statistics Demo

Other Thoughts Index usage implies app usage. Changes in one mean changes in the other! Missing indexes imply new/changed queries or stats. Check index stats following a release! Code like this is heavily customizable. Make it fit your environment. Generate metrics, report on usage, and automate it!

Conclusion Indexes are critical to performance. Tracking usage long-term is the only way to fully understand indexing usage and needs. Schedule jobs/tasks to regularly collect this data. Usage metrics teaches us how an app works. Use these metrics to prevent performance nightmares!

Questions???

Contact Info & Links Ed Pollack ed7@alum.rpi.edu @EdwardPollack SQL Shack SQL Server Central SQL Saturday Albany (2018) Thank you!!!