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
A railway yard where wagons roll into four sidings, one siding far longer than the other three.

Parallel Plans: Reading Gather Streams and Repartition Streams

October 24, 2019
Pinal Dave
SQL Performance
Execution Plan, MAXDOP, Parallel, SQL Performance, SQL Server

Read Gather Streams and other parallel exchanges, inspect rows per thread and spill evidence, and relate exchange waits to actual work.

Read More
Gouache painting of a row of park benches looking out over a pond with one vermilion bench turned the other way

MAXDOP Query Hint: Override the Server Setting for One Query

October 1, 2019
Pinal Dave
SQL Performance
MAXDOP, Parallel, SQL Scripts, SQL Server Configuration

The MAXDOP query hint sets how many processors one query can use, whatever the server setting says. This post proves it in both directions on a test table, shows that the hint can’t force a parallel plan and adds the database scoped setting between the two. Every step leaves the server setting alone.

Read More
One scythe in a mostly uncut hayfield while three more scythes hang idle on the barn wall.

NonParallelPlanReason: Why a Query Refuses to Go Parallel

September 14, 2019
Pinal Dave
SQL Performance
Execution Plan, MAXDOP, Parallel, SQL Performance

Read NonParallelPlanReason in actual and cached plans, then check MAXDOP, scalar functions, table variables, and query cost.

Read More
Active parallel loom threads are inspected separately from preserved guides and worn tools.

SQL SERVER – Active Parallel Requests and Cached Parallel Query History

September 4, 2019
Pinal Dave
SQL Performance
Parallel, SQL CPU, SQL Scripts, SQL Server

I Identify parallel running requests separately from parallel queries recorded in the cache. Those lists answer different performance questions.

Read More
An already ordered line of containers travels along a conveyor

Do Stream Aggregate Operator Always Need Sort Operator? – Interview Question of the Week #240

September 1, 2019
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, Parallel, SQL Operator, SQL Scripts, SQL Server

Question: Do Stream Aggregate Operator Always Need Sort Operator?

Answer: Absolutely No.Before I explain this question a bit more in detail.

Read More
Illustrated cover: Stream Aggregate vs Gather Streams

SQL SERVER – Is Stream Aggregate is Same as Gather Streams of Parallelism?

August 30, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Parallel, SQL CPU, SQL Operator, SQL Scripts, SQL Server

Is Stream Aggregate is Same as Gather Streams of Parallelism? – This was one of the brilliant questions I had received during my recent engagement.

Read More
Gouache painting of a wooden marble run with three blocked channels and a vermilion marble in the open one

ENABLE_PARALLEL_PLAN_PREFERENCE Limits: Rows Per Thread

August 29, 2019
Pinal Dave
SQL Tips and Tricks
Parallel, Query Hint, SQL CPU, SQL Scripts

The ENABLE_PARALLEL_PLAN_PREFERENCE limits are easy to miss: the hint can’t make every query parallel, and it can’t spread rows evenly over the threads. This post proves three limits from the last actual plan of demo queries, with the rows each thread processed and the reason a plan stays serial.

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

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