This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL in Sixty Seconds' man holding a key.

Remove Key Lookup – SQL in Sixty Seconds #194

February 21, 2022
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Index, SQL Performance, SQL Server Management Studio

Today, we are going to see one more trick from the book – Remove Key Lookup and improve the performance of queries.

Read More
Two street lamps on a cobbled square at night whose pools of light overlap in one brighter patch

Splitting OR Conditions Into UNION ALL for Index Seeks

December 27, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Server, SQL Union clause

Test splitting OR conditions into disjoint UNION ALL branches, preserve NULL behavior and row identity, and compare actual index access.

Read More
Gouache painting of a lemonade stand with a ready vermilion pitcher beside untouched lemons and a squeezer

Cached Plan Reuse: How to Tell if a Query Used a Cached Plan

December 2, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Cache, SQL Scripts

Cached plan reuse is invisible in a result set. This post shows three checks on SQL Server: the compiled and runtime parameter values in the plan, the usecounts column of the plan cache, and the plan creation time.

Read More
A sieve holds a few kernels above a trough full of sifted grain, with a larger mound behind

TOP N Sort: Why a Small TOP Still Reads the Whole Table

November 3, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Order By, SQL Server, SQL Top

Explain TOP N Sort, compare an indexed ordered access path, and align filter and sort keys before adding indexes for frequent requests.

Read More
Hands tying kindling sticks into bundles with twine beside a handcart stacked with finished bundles

Aggregate Pushdown: Letting the Columnstore Scan Do the Summing

September 13, 2021
Pinal Dave
SQL Performance
ColumnStore Index, Execution Plan, SQL Performance, SQL Server

Verify aggregate pushdown in columnstore scans, inspect locally aggregated rows, and compare numeric aggregates with expressions.

Read More
A whole assembly is inspected separately from its three internal component workpieces.

SQL SERVER – Stored Procedure Timing and Cached Measurements

August 11, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Server Management Studio, SQL Statistics, SQL Stored Procedure

SET STATISTICS TIME reports CPU and elapsed execution time for Stored Procedures. A customer wanted to measure a run without adding statements manually.

Read More
A pea sheller with some pods processed and many pods still waiting

Query Progress: Watching a Running Plan With dm_exec_query_profiles

July 28, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, Maintenance Plan, SQL Server

Elapsed time cannot tell you if a query is almost done. Live operator rows can. See how to read them and how far to trust the percentage.

Read More
Previous 1 2 3 4 5 6 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com