SQL Dev Tips for Small Workstations How to develop SQL on small dev workstations when prod is huge. Kevin Kline and Aaron Bertrand SQL Sentry.

Slides:



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

SQL Server performance tuning basics
#RefreshCache Database Performance Tuning October 9-11, 2011 Tom Powers IT Applications Team Manager Southeast Christian Church Louisville, KY
Top Tuning Tools for SQL Server Kevin Kline & Aaron Bertrand SQL Sentry.
Aaron Bertrand SQL Sentry, Senior Kevin Kline SQL Sentry, Dir of Engineering
Aaron Bertrand SQL Sentry, Senior Kevin Kline SQL Sentry, Dir of Engineering
Sponsored by: Professional Association for SQL Server Bad plan! Sit! Gail Shaw.
Presented by Brad Gall Using BI Techniques for Database Statistics.
Every SQL Programmer Should Know Kevin Kline Director of Engineering Services at SQL Sentry Microsoft MVP since 2003 Facebook, LinkedIn, Twitter at KEKLINE.
The Essentials: DMV’s and T-SQL for the DBA Rocky Mountain Tech Tri-Fecta.
Kevin Kline, SQL Sentry Director of Engineering Services, Microsoft SQL Server MVP since 2003 Twitter, Facebook, KEKline.
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
Kevin Kline, SQL Sentry Director of Engineering Services, Microsoft SQL Server MVP since 2003 Twitter, Facebook, KEKline.
Key Concepts About Performance Factors Affecting SQL Performance SQL Performance Tuning Methodologies SQL Performance Tuning Tools 1.
SQLintersection SQL37 SQL Server 2012 Availability Groups: High Availability for Your Most Important Data Aaron Bertrand,
DAT304 Managing And Executing Stored Procedures For Performance William R. Vaughn Beta V Corporation.
Intro to SQL Server Performance Tuning By Robert Biddle.
Top Free Tools for Tuning SQL Statements Kevin Kline & Aaron Bertrand SQL Sentry, Inc.
Chapter 2: SQL – The Basics Objectives: 1.The SQL execution environment 2.SELECT statement 3.SQL Developer & SQL*Plus.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
TOP10 DEV SKILLS TO MAKE YOUR DBA HAPPY Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2004 Twitter, FB, LI: KEKline Blog:
SQLRX – SQL Server Administration – Tips From the Trenches SQL Server Administration – Tips From the Trenches Troubleshooting Reports of Sudden Slowdowns.
How to Build Scalable & Secure Database Applications Noel Jerke & Erin Welker Scalability Experts.
Interpreting DMV’s & practical uses Jannie Muller mullerjannie.wordpress.com.
Connect with life Praveen Srivatsa Founder and CEO – AstraSoft.NET Vinod Kumar Technology Evangelist – Databases and BI.
Diagnosing Performance with Wait Statistics Robert L Davis Principal Database
Dave LinkedIn
Scott Fallen Sales Engineer, SQL Sentry Blog: scottfallen.blogspot.com.
Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI: KEKline Blog:
Kevin Kline Technical Evangelist, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI, KEKline Blog:
Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI, KEKline Blog:
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
STANDARD EDITION USEFUL FEATURES FOR THE REST OF US?
CSS Microsoft Korea. Data Collector Management Data Warehouse Performance and Configuration Reports Graphical Showplan Activity Monitor SQL Profiler Dynamic.
A big party is being held to honor relational database systems and their impact on modern society. Outside the venue, the host awaits the guests. The.
Troubleshooting SQL Server high CPU usage
Are You There, DBA? It’s Me, The App Developer.
Query Performance Tuning: Start to Finish
Query Tuning without Production Data
SQL Server Monitoring Overview
Reading Execution Plans Successfully
Root Cause Analysis with DMVs
Free Microsoft Exam Demo Questions Answers
Performance Monitoring Using Extended Events, DMVs & Query Store
Dynamics AX Performance
Troubleshooting SQL Server Basics
Query Optimization Techniques
Batches, Transactions, & Errors
TEMPDB – INTERNALS AND USAGE
T-SQL gotchas and power-ups
Dynamic Management Views a practical overview!
Batches, Transactions, & Errors
SQL Server Performance Tuning
Dave Bland LinkedIn SQL Server Execution Plans: How to use them to find performance bottlenecks Dave Bland LinkedIn
Kris Hokanson That’s bad mmmkay! …Or, how to know when your SQL Server isn’t working as well as it could.
Dynamic Management Views a practical overview!
Analyzing Performance Problems Using XEvents, DMVs & Query Store
Transaction Log Performance Tuning
Jean Joseph DBA/Developer
Query Optimization Techniques
Using wait stats to determine why my server is slow
Performance Tuning for SQL Developers through Execution Plans
Performance Tuning for SQL Developers through Execution Plans
Advanced Database Topics
Analyzing Performance Problems Using XEvents, DMVs & Query Store
Performance Tuning for SQL Developers through Execution Plans
Performance Tuning for SQL Developers through Execution Plans
Performance Tuning for SQL Developers through Execution Plans
Performance Tuning for SQL Developers through Execution Plans
Presentation transcript:

SQL Dev Tips for Small Workstations How to develop SQL on small dev workstations when prod is huge. Kevin Kline and Aaron Bertrand SQL Sentry

Agenda We’re giving you three speedy and useful tips in the next few minutes that will make your development efforts more realistic and representative of production-like environments. 1.Mimic Production Behavior 2.Proper Handling for Caches 3.Observe Behavior Changes

Dev workstations are usually nothing like production: 1.Build representative data when you can. 2.Build a stats-only database (a.k.a. db clone) for smaller dev environments 3.Ensure important settings are the same. 4.Simulate equivalent hardware: DBCC OPTIMIZER_WHATIF. First - Mimic Production Behavior Demo: Mimicking Prod

Code to clear the caches*: Clear dirty pages: CHECKPOINT Clear the plan cache: DBCC [FreeProcCache | FreeSystemCache | FlushProcInDB( ) ] Clear the data cache, when needed: DBCC DROPCLEANBUFFERS Second - Proper Handling For Caches

Code to set measurements: SET STATISTICS [TIME | IO] SET SHOWPLAN [TEXT | XML] or Graphic Execution Plans Code for Dynamic Management Views (DMV) checks. Query info – sys.dm_exec_plan_attributes, sys.dm_exec_sql_text System info – sys.dm_os_performance_counters, sys.dm_os_wait_stats Query info – sys.dm_exec_requests Index info – sys.dm_db_index_usage_stats, sys.dm_io_virtual_file_stats Third – Observe Behavioral Changes Demo: SQL Observations

Summary Three steps to achieving production-live behavior in a small SQL Server development environment: 1.Mimic Production Behavior, via DBCC OPTIMIZER_WHATIF. 2.Proper Handling for Caches, via DBCC cache controls. 3.Observe Behavioral Changes, via SET statements, SSMS, and DMVs. Get the demo scripts at _________________. Q&A: Aaron Kevin