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
Casey refuses to erase the clipboard, photographs it before and after the dinner rush, and subtracts, while Ace photobombs both pictures. Casey finds the answer: "Dinner belonged to the stairs, not the night truck."

Wait Stats Over Time: Measuring One Time Window

February 5, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

Wait stats over time means measuring the waits of one window, such as your busy hour, instead of reading totals since the last restart. On Night 5 at the Clipboard Diner, Casey photographs the clipboard at 6:00 and at 7:00 and subtracts. Then one script does the same thing with two snapshots of sys.dm_os_wait_stats.

Read More
Late at night Casey reads the whole clipboard, finds the biggest line belongs to the sleeping night baker, and slashes it out with a giant red pen while Ace and Quinn duck. Casey says, "Cross out the sleepers first. Then read."

sys.dm_os_wait_stats: Reading the Wait Stats List

February 3, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Scripts, SQL Wait Stats

sys.dm_os_wait_stats is the running list of every wait SQL Server has recorded since its last restart. On Night 3 at the Clipboard Diner, Casey reads the clipboard at 2 AM and crosses out the sleepers. Then one query filters out the harmless waits and shows the share, the average and the signal part of every wait that matters.

Read More
A postcard says the food critic is coming, the busy kitchen can't explain its late plates, and Casey hangs up a new clipboard while Ace, Quinn and even the jukebox lean in. Casey asks, "New question. What are we waiting for?"

Wait Stats Explained: SQL Server as an All-Night Diner

February 1, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Performance, SQL Wait Stats

Wait stats explained with one picture: SQL Server is an all-night diner, and every query is an order ticket that waits for something. Meet the Clipboard Diner, its owner Casey, the cooks and booth 7. Then count the burners and cooks on your own server with one query.

Read More
SQL SERVER - A Funny Cartoon on Index

Index Write Cost: What Each New Index Adds to an INSERT

January 17, 2011
Pinal Dave
SQL Performance
SQL Index, SQL Performance, Transaction Log

Index write cost is the part of the create-an-index advice that the cartoon leaves out. This test inserts the same 20,000 rows with no extra index, one and three, and measures the log written each time. It also shows what the index saved on a lookup, so you can weigh both sides.

Read More
A barn weathervane pointing one way while the wheat field below bends the other way in a gust.

When Auto Update Statistics Is Not Enough

December 4, 2010
Pinal Dave
SQL Performance
DBA, Execution Plan, SQL Performance, SQL Statistics

Auto update statistics can miss important data patterns; inspect thresholds, ascending keys, sampling, and targeted update schedules.

Read More
LIKE cardinality illustrated by clear jars containing different stone mixtures beside bowls on a rich apothecary bench.

LIKE Cardinality: String Statistics and Row Estimates

November 22, 2010
Pinal Dave
SQL Performance
SQL Performance, SQL Scripts, SQL Statistics

LIKE row estimates depend on the pattern, string statistics and compilation context. Compare estimated and actual matching rows in a controlled distribution, while keeping cardinality estimates separate from the chosen access path.

Read More
A long rowing boat with eight oars sitting in a garden pond barely bigger than the boat.

Setting MAXDOP and Cost Threshold Sensibly

November 16, 2010
Pinal Dave
SQL Performance
MAXDOP, Parallel, SQL CPU, SQL Performance, SQL Server Configuration

MAXDOP and cost threshold work together to shape parallel plans; inspect current values, test a change, and watch real workload effects.

Read More
Previous 1 … 44 45 46 47 48 49 50 … 54 Next
  • Books
  • Testimonials
  • Privacy Policy

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