Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Mastering the Basics of SQL Server Query Optimization
Rating: 4.1 out of 5(1,134 ratings)
5,621 students

Mastering the Basics of SQL Server Query Optimization

Learn to Create Optimal Execution Plans for Your Queries
Created byMike West
Last updated 2/2016
English

What you'll learn

  • At the conclusion of this course you'll understand how the optimizer works at a very high level.
  • You will be able to read showplans. These are created when a query is executed.
  • You'll understand the caching mechanisms behind SQL Server optimizer.

Course content

5 sections44 lectures1h 20m total length
  • An Introduction to This Course1:26

    What are we going to cover in this course.

    Please take a quick perusal of this and other lectures to get a clearer idea on what's we will be covering in the course.

  • Is This Course Right for You?0:59

    In this lecture I want to make sure you are in the right place.

    This course is about the Query Optimizer and about the basics of reading execution plans.

  • Course Downloads0:11
  • The SQL Engine1:16

    The SQL Server Engine has two major componets.

    In this lecture let's find out what they are.

  • The Query Processing Process1:30

    When any query is issued in SQL Server a plan is created.

    This plan is created via a variety of steps.

    Let's talk about them in this lecture.

  • The Search Space1:44

    In this lecture we will define what a Search Space is.

  • What's In the Cost?1:32

    How much does it cost to do all this?


    Let's find out.

  • Plan Cache Reuse1:20

    As a general rule we want plan cache reuse.

    It's a good thing.

    Let's talk about it in this lecture.

  • What Causes Recompilation?0:51

    Some times new plans will have to be created.

    What are a few of the major causes of recompiles?

  • Terminology4:02

    Let's cover the new vernacular in video format.

  • Summary1:19

    Let's wrap up what we've covered in this section.

  • Quiz

Requirements

  • This course was designed for anyone with a working knowledge of relational databases, specifically SQL Server.
  • It can be anything other than Express also
  • Other than SQL Server nothing else is needed to take the course.
  • I've included code samples for the course in the Course Download lecture.
  • You will need to download and install SQL Server 2012, 2014 or 2016 Express Edition
  • You'll also need to download a copy of the Adventureworks database.

Description

Student Warning: Even though this is a beginners class it's fast paced and will require some outside study on your part.

I've included 4 different preview lessons so you could better gauge the speed of the course. Please take a moment to preview all of them. If those lessons are too fast then please take this course after you've taken my entry level courses. Thanks.... Mike

Recent Unsolicited Testimonials

“Learned lots from this well constructed and easy to follow course - thanks Mike!” – Caroline

“Feel much more confident in MSSQL now. Thanks!” Jef Yo

“This short course is excellent and will give you a good understanding of the basics in SQL server administration.” Luke Dunn

In this course we are going to delve into the Query Optimizer, easily one of the most complicated pieces of software ever written.

The Query Optimizer is the SQL Server component that tries to give you an optimal execution plan for your queries. The Query Optimizer tries to find that execution plan as quickly as possible. Not the perfect plan but a good one.

The SQL Server Query Optimizer is a cost-based optimizer. It analyzes a number of execution plans for a given query, estimates the cost of each of these plans, and chooses the plan with the lowest cost.

The optimizer seeks to find balance between the optimization time and the quality of the selected plan.

The course will be a balance of hands on query performance tuning and understanding the basics of the optimizer’s architecture.

We are going to learn about the execution engine, statistics and cost estimation, index selection and the optimization process.

At the core of the SQL Server Database Engine are two major components: the storage engine and the query processor also called the relational engine.

In this course our sole focus will be on the query processor. This part of the engine accepts all queries submitted to SQL Server and creates a plan for optimal execution.

See you in the course!!!

Who this course is for:

  • This is a mid level course aimed at those who have a working foundation of SQL Server.
  • This is not an entry level course.
  • Everything you need to take the course will be included. There are no items you'll have to purchase.