Geek Sync | How to Catch SQL Server Performance Troublemakers

7
© 2018 IDERA, Inc. All rights reserved. Proprietary and confidential. HOW TO CATCH SQL SERVER PERFORMANCE TROUBLEMAKERS Pinal Dave https://blog.SQLAuthority.com

Transcript of Geek Sync | How to Catch SQL Server Performance Troublemakers

Page 1: Geek Sync | How to Catch SQL Server Performance Troublemakers

© 2018 IDERA, Inc. All rights reserved.

Proprietary and confidential.

HOW TO CATCH SQL SERVER

PERFORMANCE TROUBLEMAKERS

Pinal Davehttps://blog.SQLAuthority.com

Page 2: Geek Sync | How to Catch SQL Server Performance Troublemakers

© 2015 IDERA, Inc. All rights reserved. Proprietary and confidential. 2

AGENDA

Database Settings• Cardinality• Statistics

Before and After Reports• Wait Stats• Frequently Ran Queries

Important Resources

Page 3: Geek Sync | How to Catch SQL Server Performance Troublemakers

© 2015 IDERA, Inc. All rights reserved. Proprietary and confidential. 3

DATABASE SETTINGS - STATISTICS

Auto create statistics Auto update statistics Helps query optimizer to generate the optimal plan Latest statistics better execution plan

Page 4: Geek Sync | How to Catch SQL Server Performance Troublemakers

© 2015 IDERA, Inc. All rights reserved. Proprietary and confidential. 4

CARDINALITY ESTIMATION

Predicts rows your query likely to return Helps query optimizer to generate the optimal plan

Latest CE is more accurate Latest CE more optimal query plan

Page 5: Geek Sync | How to Catch SQL Server Performance Troublemakers

© 2015 IDERA, Inc. All rights reserved. Proprietary and confidential. 5

SERVER BOTTLENECKS WITH WAIT STATS

Displays server-level bottlenecks Focus on IO, CPU, and memory

Page 6: Geek Sync | How to Catch SQL Server Performance Troublemakers

6© 2017 IDERA, Inc. All rights reserved. Proprietary and confidential.

PERFORMANCE3 Performance Tuning Scripts:https://go.sqlauthority.com

Page 7: Geek Sync | How to Catch SQL Server Performance Troublemakers

7© 2017 IDERA, Inc. All rights reserved. Proprietary and confidential.

THANKS!Any questions?

3 Performance Tuning Scriptshttps://go.sqlauthority.com