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
Gouache painting of a track splitting into four parallel tracks with a vermilion switch lever set to the wide side

Force a Parallel Plan: ENABLE_PARALLEL_PLAN_PREFERENCE Hint

August 27, 2019
Pinal Dave
SQL Performance
Parallel, Query Hint, SQL CPU, SQL Scripts

To force a parallel plan for one query, add the ENABLE_PARALLEL_PLAN_PREFERENCE hint to its OPTION clause. This post shows why a cheap query stays serial, runs a demo query with and without the hint, proves the difference from the last actual plan, and explains why the hint belongs in a test and not in every query.

Read More
Gouache painting of four wheelbarrows of apples in an orchard with the fullest one in vermilion

Rows Read Per Thread: Four Ways to See Them in SQL Server

July 26, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Parallel, SQL DMV, SQL Scripts

Rows read per thread show whether a parallel query shares its work evenly. The post shows two plan based methods, a T-SQL query over the last actual plan, and a live DMV for running queries. A 500,000 row demo proves the threads add up to the table.

Read More
Title card: Wait Type: PARALLEL_BACKUP_QUEUE

SQL SERVER – What is Wait Type Parallel Backup Queue?

July 10, 2019
Pinal Dave
SQL Tips and Tricks
Parallel, SQL Backup and Restore, SQL Scripts, SQL Server, SQL Wait Stats

Only official documentation which I could find was about wait statistics related to Parallel Backup Queue is very little available online.

Read More
Gouache painting of a row of wooden stakes and a crate stack in a meadow with one vermilion stake

MAXDOP Guidelines: Audit CPU and Memory Settings in SQL Server

April 19, 2019
Pinal Dave
SQL Tips and Tricks
MAXDOP, Parallel, SQL CPU, SQL DMV, SQL Memory

MAXDOP guidelines start from the number of CPUs and NUMA nodes on the server. This post builds three read-only queries that show those facts, the current MAXDOP and cost threshold, and the memory settings. It also shows how to read the answer without changing anything.

Read More
Different weighted bags balance on a simple beam, illustrating cost comparison

Do Queries Always Respect Cost Threshold of Parallelism? – Interview Question of the Week #216

March 17, 2019
Pinal Dave
SQL Interview Questions and Answers
Parallel, SQL Performance, SQL Scripts, SQL Server

Do queries always respect the Cost Threshold for Parallelism? Not always, and a quick AdventureWorks test with the execution plan shows why.

Read More
Gouache painting of a toll plaza with two crowded lanes and one idle lane with a vermilion barrier arm

Update Statistics With FULLSCAN and MAXDOP in SQL Server

February 15, 2019
Pinal Dave
SQL Performance
MAXDOP, Parallel, SQL Scripts, SQL Statistics

To update statistics with FULLSCAN in parallel, add MAXDOP to the statement. This post builds a table of 3 million rows, times the update with MAXDOP 1, the instance default and 8, and shows which statistics speed up and which do not.

Read More
Title card: New Parallel Operation Cannot Be Started

SQL SERVER – New Parallel Operation Cannot be Started Due to Too Many Parallel Operations Executing at this Time

February 13, 2019
Pinal Dave
SQL Tips and Tricks
Parallel, Reporting Services, SQL Backup and Restore, SQL Error Messages, SQL Server

A client’s ERRORLOG said: New parallel operation cannot be started due to too many parallel operations executing at this time. Here is what I found behind it.

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

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