Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Core Tech
Google Cloud Platform icon
Labs

Performance Diagnostic and Indexing

In this hands-on lab, you will diagnose and resolve SQL Server performance issues using execution plans and dynamic management views. You will analyze three slow-running queries to identify expensive operators, such as Table Scans and Key Lookups; compare estimated and actual row counts to detect outdated statistics; and examine query wait statistics to identify server bottlenecks. You will create covering indexes and composite indexes to eliminate scans, rewrite non-SARGable predicates for index seeks, and replace correlated subqueries with window functions. By the end of the lab, you will have reduced query execution time and documented the before-and-after performance metrics.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Feb 24, 2026
Duration
1h 0m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Analyze Query Execution Plans to Pinpoint Inefficiencies
    • Execute three slow-running queries and capture baseline performance metrics using Statistics IO and Statistics Time.
    • Read text execution plans to identify expensive operators such as Table Scans, Hash Match Joins, and Key Lookups.
    • Compare estimated versus actual row counts to detect outdated or inaccurate statistics.
    • Query wait statistics to determine whether performance is constrained by CPU, memory, or I/O.
  2. Challenge

    Implement Strategic Indexing for Read Optimization
    • Review missing index recommendations.
    • Create non-clustered covering indexes with INCLUDE columns to eliminate base table lookups.
    • Design composite indexes following the equality-before-range column ordering rule.
    • Identify and remove unused indexes to reduce write overhead.
  3. Challenge

    Refactor Inefficient SQL for Scalable Throughput
    • Rewrite non-SARGable WHERE clauses to enable index seeks instead of scans.
    • Replace a correlated subquery with a window function for single-pass processing.
    • Implement parameterized queries to promote plan reuse.
    • Run a final performance comparison documenting percentage improvement for each query.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight