Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.

Slides:



Advertisements
Similar presentations
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Advertisements

Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
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.
SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
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.
SQL Server 2008 & Solid State Drives Jon Reade SQL Server Consultant SQL Server 2008 MCITP, MCTS Co-founder SQLServerClub.com, SSC
Virtual techdays INDIA │ September 2011 Tips for Successful SQL Server Deployment in Enterprise Environment Balmukund Lakhani │ Technical Lead –
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.
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.
Get the Most out of SQL Server Standard Edition Or How to be a SQL Miser.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.
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.
SQL Server Performance Tuning Starter Kit Randolph West | Born SQL.
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
Chapter Overview Understanding the Database Architecture
Introduction to SQL Server Management for the Non-DBA
Software Architecture in Practice
Optimizing SQL Server Performance in a Virtual Environment
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
Working with Very Large Tables Like a Pro in SQL Server 2014
Dynamics AX Performance
Hitting the SQL Server “Go Faster” Button
Configuring SQL Server
What’s new in SQL Server 2016 Availability Groups
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
You Inherited a Database Now What?
Transaction Log Performance Tuning
Jean Joseph DBA\DEVELOPER
Your Data Any Place, Any Time
Presentation transcript:

Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016

Sponsors #509 | Brisbane 2016 Please make sure you visit our fantastic sponsors:

Robert Douglas BA(hons),MCTS, MCITP(2005/2008), MCSA(2012) Consultant for SQL Services Limited Christchurch\Nelson SQL Server Users Group #509 | Brisbane 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. 3 rd party products and can’t directly adjust queries. Prioritizing your time to the best return for the business. Many consolidated databases on one server. Takeaways – a list of options you can apply to your own systems. #509 | Brisbane 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. 3 rd 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. #509 | Brisbane 2016

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

Hardware

It’s not cheating! In fact often it is the best return on investment you can get. Memory IO CPU #509 | Brisbane 2016

Memory Set Maximum Server Memory appropriately Lock Pages in Memory Ignore the (Very Old) pagefile = 1.5 x RAM recommendation. #509 | Brisbane 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. #509 | Brisbane 2016

CPU Cost Implications for Licensing Be Aware of Your Edition Limits Some SQL Server Level Settings which effect this. #509 | Brisbane 2016

Server Level

Windows Level Power Saving Settings 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. #509 | Brisbane 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! #509 | Brisbane 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….. #509 | Brisbane 2016

Database Level

Database Settings Data and Log File Sizing 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 Delayed Durability #509 | Brisbane 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. #509 | Brisbane 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? #509 | Brisbane 2016

Questions #509 | Brisbane 2016 Please make sure you visit our fantastic sponsors: