Hitting the SQL Server “Go Faster” Button

Slides:



Advertisements
Similar presentations
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Advertisements

Adam Jorgensen Pragmatic Works Performance Optimization in SQL Server Analysis Services 2008.
Big Data Working with Terabytes in SQL Server Andrew Novick
10 Things Not To Do With SQL SQLBits 7. Some things you shouldn’t do.
SQL Server 2005 features for VLDBs. SQL Server 2005 features for VLDBs aka (it’s fixed in the next release)
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
Proper Care and Feeding of your SQL MDB -Recommendations for General MDB Maintenance -Read the notes on the foils! -Revised October
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
Transaction log grows unexpectedly
Russ Houberg Senior Technical Architect, MCM KnowledgeLake, Inc.
Denny Cherry Senior Database Administrator / Architect MVP, MCSA, MCDBA, MCTS, MCITP.
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
Chapter 2: Designing Physical Storage MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
Module 3: Managing Database Files. Overview Introduction to Data Structures Creating Databases Managing Databases Placing Database Files and Logs Optimizing.
11 SYSTEM PERFORMANCE IN WINDOWS XP Chapter 12. Chapter 12: System Performance in Windows XP2 SYSTEM PERFORMANCE IN WINDOWS XP  Optimize Microsoft Windows.
Improving Efficiency of I/O Bound Systems More Memory, Better Caching Newer and Faster Disk Drives Set Object Access (SETOBJACC) Reorganize (RGZPFM) w/
October 11-14, Seattle, WA All the Magic Knobs Low Effort, High Return Tuning Cindy Gross Microsoft Certified Master : SQL Server Dedicated Support Engineer.
SQL Server 2000 Sys Admin Jeremiah Curtis Engineering Services
MISSION CRITICAL COMPUTING Siebel Database Considerations.
TOP 10 Thinks you shouldn’t do with/in your database
Page 1 Monitoring, Optimization, and Troubleshooting Lecture 10 Hassan Shuja 11/30/2004.
October 15-18, 2013 Charlotte, NC Accelerating Database Performance Using Compression Joseph D’Antoni, Solutions Architect Anexinet.
How to kill SQL Server Performance Håkan Winther.
SQL Server 2016 – New Features Tilahun Endihnew March 12, 2016.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
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.
Let’s Get It Started Lori Edwards, SQL Sentry. Introduction  Sales Engineer for SQL Sentry since 2/2013  Previously – DBA since 2003  PASS volunteer.
Are You High? Can You Recover? Robert Douglas SQL Saturday #468, Sydney 27 th February 2016.
Virtualization Fundamentals for DBAs Joey D’Antoni February 3, 2015 DBA Fundamentals VC.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
Use Cases for In-Memory OLTP Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com.
ProgressBook Suite Maintenance
What We’ll Cover Today Introductions Poll SQL Performance Goals
Top 10 DBA mistakes that affect the SQL Server performance
Get the Most out of SQL Server Standard Edition
You Inherited a Database Now What?
Data, Space and Transaction Processing
SQL Server Performance Tuning
Hitting the SQL Server “Go Faster” Button
Section 6: SQL Server on IaaS Best Practices
SQL Server Internals Overview
Informatica PowerCenter Performance Tuning Tips
Very Large Databases in your future
SQL Server Monitoring Overview
Introduction to SQL Server Management for the Non-DBA
Software Architecture in Practice
Optimizing SQL Server Performance in a Virtual Environment
Introduction of Week 3 Assignment Discussion
The Top 5 SQL Server Mistakes
Boring is stable, stable is good - best practices in practice
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Dynamics AX Performance
Configuring SQL Server
Re-Indexing - The quest of ultimate automation
What’s new in SQL Server 2016 Availability Groups
Welcome to SQL Saturday Denmark
Statistics: What are they and How do I use them
Turbo-Charged Transaction Logs
Very large Databases in your future Eric Peterson.
SQL Server performance tuning on Azure IaaS
Configuring SQL Server
Indexing For Optimal Performance
It’s TEMPDB Why Should You Care?
You Inherited a Database Now What?
Transaction Log Performance Tuning
Jean Joseph DBA\DEVELOPER
Your Data Any Place, Any Time
Sql Saturday Philadelphia
Presentation transcript:

Hitting the SQL Server “Go Faster” Button Rob Douglas #479 SQL Saturday South Island

Sponsors Please make sure you visit our fantastic sponsors: SQL SATURDAY | #479 | South Island 2016

Robert Douglas Consultant for SQL Services Limited BA(hons),MCTS, MCITP(2005/2008), MCSA(2012) Consultant for SQL Services Limited Christchurch\Nelson SQL Server Users Group Passionate about Data (Are you impressed?) SQL SATURDAY | #479 | South Island 2016

Robert Douglas Consultant for SQL Services Limited BA(hons),MCTS, MCITP(2005/2008), MCSA(2012) Consultant for SQL Services Limited Christchurch\Nelson SQL Server Users Group Passionate about Data Doing a Good Job SQL SATURDAY | #479 | South Island 2016

The SQL Server “Go Faster” Button SQL SATURDAY | #479 | South Island 2016

The SQL Server “Go Faster” Button There isn’t one. But…. There are a lot of knobs and switches that, when used appropriately, can make a huge difference! Today we will focus on low effort, high return. Individual query tuning is very resource intensive. Many consolidated databases on one server. 3rd party products and can’t directly adjust queries. Prioritizing your time to the best return for the business. Takeaways – a list of options you can apply to your own systems. SQL SATURDAY | #479 | South Island 2016

The SQL Server “Go Faster” Button There isn’t one. But…. There are a lot of knobs and switches that, when used appropriately, can make a huge difference! Today we will focus on low effort, high return. Individual query tuning is very resource intensive. Many consolidated databases on one server. 3rd party products and can’t directly adjust queries. Prioritizing your time to the best return for the business. Takeaways – a list of options you can (test and then)apply to your own systems. SQL SATURDAY | #479 | South Island 2016

Where Can We Get Gains? Hardware Windows Configuration Instance and Database Settings Maintenance Non-Code Changes. Run This: SQL Best Practices Analyzer SQL SATURDAY | #479 | South Island 2016

Hardware

Hardware It’s not cheating! Memory IO CPU In fact often it is the best return on investment you can get. Memory IO CPU SQL SATURDAY | #479 | South Island 2016

Memory Set Maximum Server Memory appropriately Lock Pages in Memory Ignore the (Very Old) pagefile = 1.5 x RAM recommendation. SQL SATURDAY | #479 | South Island 2016

IO (Not disk) Faster the better 64K Block Size and Disk Partition Alignment Dedicated drive Degree of Isolation. Remove IO bottleneck by decreasing load or increasing capacity. SQL SATURDAY | #479 | South Island 2016

CPU Cost Implications for Licensing Be Aware of Your Edition Limits Some SQL Server Level Settings which effect this. SQL SATURDAY | #479 | South Island 2016

Network

Server Level

Windows Level Power Saving Settings Lock Pages in Memory Bios and Windows Level Lock Pages in Memory Instant File Initialization(Perform Volume Maintenance Tasks) Data File Only Small Security Risk(But not really) Dedicate the Windows Server to SQL Server. Exclude SQL from applications using filter drivers(Such as Anti-Virus). Try and keep windows patches up to date. SQL SATURDAY | #479 | South Island 2016

Virtual Machines Can perform (nearly) as well as a physical machine. VM Memory to avoid ballooning Don’t overcommit resources Understand when and where the Virtual Machine can be moved. Understand what that means for licensing! Method of disk provisioning. Power Savings counts here too! SQL SATURDAY | #479 | South Island 2016

SQL Server Level Settings Optimize for Ad Hoc Workloads Compression Backup Compression Page or Row Compression Maximum Degree of Parallelism Cost Threshold of Parallelism. Trace Flags 1117,1118,3226,2371,4199, 1117 – grow files equally 1118 – mixed extents 3226 – remove backup success messages, 2371 – changes auto-update-stats thresholds. FROM 500+205 the size of table. 4199 – Turn on query optimizer changes by default. SQL SATURDAY | #479 | South Island 2016

Database Level

Database Settings Data and Log File Sizing Transaction Isolation Level Autogrow should be a failsafe, but scope it accordingly. Avoid AutoShrink, and manual shrink unless you will never grow it again. VLF’s Find them with DBCC Loginfo 2014 does it better. Transaction Isolation Level SQL SATURDAY | #479 | South Island 2016

TempDB Settings Multiple Data Files to avoid Contention Presize and keep all files the same size. Review the filesize, particularly if you change your usage pattern. TraceFlags that can help: T1117 for equal file growth. T1118 for allocation of mixed extents. SQL SATURDAY | #479 | South Island 2016

Ongoing Maintenance

Indexes and Maintenance Indexes can make a significant effect on individual queries They come at a cost – slower writes Apply the common sense filter to ‘missing index’ recommendations. Fill Factor Maintenance Rebuild or Re-Organize Update Statistics Backups What and how often? And who? SQL SATURDAY | #479 | South Island 2016

Questions Please make sure you visit our fantastic sponsors: SQL SATURDAY | #479 | South Island 2016