SQL Server Optimizing Query Plans

Slides:



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

Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
Jon Galloway | Technical Evangelist Christopher Harrison | Content Developer.
Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
Kate Gregory | Gregory Consulting James McNellis | Senior Engineer, Visual C++
Gerry O’Brien| Technical Content Development Manager Paul Pardi| Senior Content Publishing Manager.
Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
▪ Microsoft Virtual Academy—Free online training! ‒ Tailored for IT Pros and Developers ‒ Over 1M registered users ▪ Earn while you learn! ‒ 50 MVA Points.
Jon Galloway | Development Platform Evangelist Christopher Harrison | Microsoft Certified Trainer.
Jeffrey Snover | Distinguished Engineer & Lead Architect Jason Helmick | Senior Technologist, Concentrated Technology.
Join the MVA Community! ▪ Microsoft Virtual Academy—Free online training! ‒ Tailored for IT Pros and Developers ‒ Over 1M registered users ▪ Earn while.
Join the MVA Community! ▪ Microsoft Virtual Academy—Free online training! ‒ Tailored for IT Pros and Developers ‒ Over 1M registered users ▪ Earn while.
Register for these FREE Jump Starts—NOW! January 30 | Virtualization for VMware Pros − Late Feb | Tools for VMware.
SQL Server Statistics DEMO SQL Server Statistics SREENI JULAKANTI,MCTS.MCITP,MCP. SQL SERVER Database Administration.
SQL Server Statistics DEMO SQL Server Statistics SREENI JULAKANTI,MCTS.MCITP SQL SERVER Database Administration.
Naqash Ahmed | Microsoft Student Partner. Naqash Ahmed | Student of Bachelors in Software Engineering Microsoft Student Partner since November.
Join the MVA Community! ▪ Microsoft Virtual Academy—Free online training! ‒ Tailored for IT Pros and Developers ‒ Over 1M registered users ▪ Earn while.
Cross Platform Development with Xamarin & Visual Studio 2013
SQL Server Statistics and its relationship with Query Optimizer
3D Printing Essentials Emmett Lalish | Mechanical Engineer
Boost your T-SQL with the APPLY Operator
Blue Collar SQL Tricks - Make Standard Edition Work for you.
Introduction to Tabular Data Models
Porting your Unity Game to the Windows Store Jump Start
Web API Design Jeremy Likness | Principal Architect
Mission-critical performance with Microsoft SQL Server 2016
Designing Database Solutions for SQL Server
Becoming a Visio 2013 Power User – Part 3
Programming Robotic Systems using Visual Studio
Blazing-Fast Performance:
Learn more: Expand your Cloud Knowledge
Cardinality Estimator 2014/2016
Creating Windows Store Apps Using Visual Basic
Cross Platform Development with Xamarin & Visual Studio 2013
Office 365 Admin Support Skills: Service Management
Join the MVA Community! Microsoft Virtual Academy—Free online training! Tailored for IT Pros and Developers Over 1M registered users Earn while you learn!
Cardinality Estimates in SQL Server 2014
Introduction to AngularJS
Introduction to jQuery
Getting Started with PowerShell Desired State Configuration (DSC)
Reading Execution Plans Successfully
Reimagine Finance: Managing Controls and Compliance
Game Production Basics
Steven Borg | Co-Founder & Strategist, Northwest Cadence
Developing Microsoft Azure Solutions Jump Start
A Lap Around Azure Websites Introduction
Rapid Data Exploration:
Upgrading to Microsoft SQL Server 2014
DevOps - Visual Studio Release Management Jump Start
ASP.NET Authentication with Identity Jump Start
Single Page Applications with jQuery or AngularJS
Developing Universal Windows Apps with HTML and JavaScript
Blue Collar SQL Tricks - Make Standard Edition Work for you.
Gaming Engines for Windows 8
Reading execution plans successfully
7a. Issues for discussion
Quick Start Challenge: Universal Projects to Build a Game
Pranav Rastogi | Program Manager, Microsoft
Quick Start Challenge: Microsoft Advertising SDK
Implementing Data Models & Reports with Microsoft SQL Server
Azure SQL Database for Business Critical Cloud Applications
Stacey Mulcahy| Technical Evangelist Jamie Kosoy | Content Developer
Getting Started with PowerShell Jump Start
Jeffrey Snover | Distinguished Engineer & Lead Architect
05 | Testers’ Role in the DevOps World
What’s ASP.NET 5 and Why? Scott Hunter | Director of Program Management Scott Hanselman | Principal Program Manager.
Git Jump Start Steven Borg | Co-founder & Strategist, Northwest Cadence James Tupper| ALM Consultant, Northwest Cadence.
Getting Started with Microsoft Azure Machine Learning
Adding Style with CSS Helen Zeng | Developer Evangelist
Presentation transcript:

SQL Server 2014 - Optimizing Query Plans Pooja Harjani | Senior Program Manager, SQL Server

Meet Pooja Harjani | ‏@pvaswani Senior Program Manager, SQL Server Worked on features in Query Processing area in SQL Server 2012 and in In-Memory OLTP technology in SQL Server 2014 Release Manager for SQL Server 2014 Currently working on Query Processing area and In-Memory OLTP technology in SQL Server Contributed to white papers on partitioning and In-Memory OLTP in SQL Server

Course Topics SQL Server 2014 - Optimizing Query Plans 01 | Background on SQL Server Query Optimizer (QO) 02 | New Cardinality Estimator (CE) 03 | Incremental Statistics

Setting Expectations Target Audience DBAs with a background in on-premises SQL Server Developers with a background in developing for SQL Server Suggested Prerequisites/Supporting Material Suggested Reading: Optimizing your query plans with SQL Server 2014 Cardinality Estimator - http://msdn.microsoft.com/en-us/library/dn673537.aspx

Join the MVA Community! Microsoft Virtual Academy Free online learning tailored for IT Pros and Developers Over 1M registered users Up-to-date, relevant training on variety of Microsoft products

Pooja Harjani | Senior Program Manager, SQL Server 01 | Background on SQL Server Query Optimizer (QO) Pooja Harjani | Senior Program Manager, SQL Server

Module Overview About Query Optimizer (QO) Cardinality Estimation (CE) Statistics

About Query Optimizer (QO) The QO takes a user query and returns a query plan Rule-based optimizer Estimates cost using estimates of the size of a given sub-result (Cardinality Estimates) First bullet supporting points: Rearranges the order of operations Chooses logical and physical operators Maintains query semantics (many plans have the same semantics)

Cardinality Estimation Estimates the number of rows returned by each operation Relies on Basic assumptions (independence, uniformity, etc) Statistics

Statistics Basic information about the distribution of the data in the table Used extensively by Cardinality Estimator (CE) Freshness matters

Basic Statistics Terms Density = 1 / Distinct Value Count Frequency = Row Count * Density Selectivity of P= Row Count satisfying P/ Row Count