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
Avoid Join Hints

Avoid Join Hints – SQL in Sixty Seconds #172

June 8, 2021
Pinal Dave
SQL Video
Execution Plan, SQL in Sixty Seconds, SQL Joins, SQL Server

Question: If they can change the join hints to improve the performance of the query. Well, the reality is that I always Avoid Join Hints.

Read More
Gouache painting of three mountain paths from one post to the same hut, with a vermilion stone cairn on the middle path

Group by Query Hash: Find One Query With Many Plans

June 4, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Performance, SQL Scripts

Group by query hash to add up every cached copy of one query. See why the top query hides across entries in SQL Server.

Read More
many plans

One Query Many Plans – SQL in Sixty Seconds #171

June 3, 2021
Pinal Dave
SQL Video
Execution Plan, SQL Cache, SQL in Sixty Seconds, SQL Performance, SQL Server

After the blog post, lots of people asked me it will be more helpful if I can create a video on the same topic of one query many plans.

Read More
Gouache painting of two identical teapots on separate shelves, one on a vermilion saucer

Same Query Plan, Different Cache Entry in SQL Server

June 2, 2021
Pinal Dave
SQL Performance
Ad Hoc Query, Execution Plan, SQL Cache, SQL Scripts

The same query plan can sit in the cache many times when query text changes by a space, a letter case or a comment. See it, measure it and learn how to share one entry.

Read More
Gouache painting of a pale wooden bench in a bare room with a single vermilion peg set in the top

Change Join Type for a Query: HASH, LOOP and MERGE Hints

April 22, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, Query Hint, SQL Joins, SQL Scripts

To change join type for a query, add one of three hints to its OPTION clause. This post runs one join with each hint on two filters and compares the join type and the logical reads. It shows that no join type is best in general, and what a join hint in the FROM clause does to the join order.

Read More
Gouache painting: a row of eight windmills along a ridge at dusk, most sails turning and three standing still, one windmill with a vermilion sail

Threads With Zero Rows in a Parallel Plan, Measured

April 7, 2021
Pinal Dave
SQL Performance
Execution Plan, MAXDOP, Parallel, SQL DMV, SQL Scripts

A parallel plan can show threads with zero rows, and that is normal. This post reads the per-thread row counters of two real plans on SQL Server 2025 and shows where the empty threads come from. It also says when an empty thread points to a real problem.

Read More
Gouache painting of a long orchard row with one basket at the first tree holding a single vermilion apple

Top 1 and Index Scan: A Scan That Stops After One Row

April 1, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Scripts, SQL Top

Top 1 and index scan can sit in the same plan, and the scan still reads only a few pages. This post runs six queries on a table of 100,000 rows and reads their logical reads. It shows why TOP 1 reads three pages in one case and every page in another.

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

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