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 SQL Server table showing statistics information.

SQL SERVER – Puzzle – Statistics are not Updated but are Created Once

June 2, 2011
Pinal Dave
SQL Performance
SQL Index, SQL Statistics

A puzzle for you: auto update is on and I insert 10 times more rows, yet the statistics are not updated. Why, and how can they update automatically?

Read More
Hands tipping a large milk churn over a small teacup, milk flooding the table, a tiny cream jug unused

SELECT * in Production Code: The Hidden Costs

April 18, 2011
Pinal Dave
SQL Performance
SQL Coding Standards, SQL Index, SQL Server, SQL View

See the real costs of SELECT * in production code: lost covering indexes, lookups, stale view metadata, broken inserts and wider results.

Read More
A detailed woodworking atelier shows one timber beam worked at two stations with coherent tools and careful joinery.

SQL Server Execution Plan Quiz: One Table, Two Operators

March 15, 2011
Pinal Dave
SQL Puzzle
Execution Plan, SQL Index, SQL Server

One table reference can produce Nested Loops, a Key Lookup and parallel operators in an execution plan. A controlled SQL example makes the work visible and shows why MAXDOP is a ceiling rather than a promise of parallel execution.

Read More
Comic strip: four cooks build one giant cookie tray, three of them wait on Jesse's heavy bowl of chunky dough, and with the dough split evenly they all finish at once in a synchronized dance pose. Casey says, "Even bowls, short wait. The tray was never the problem."

Batch Mode Wait Stats: HTBUILD and Columnstore Waits

February 26, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Memory, SQL Wait Stats

Batch mode wait stats such as HTBUILD and BPSORT show threads waiting for each other inside a parallel batch mode plan. On Night 26 at the Clipboard Diner, four cooks wait for one giant shared tray before 900 cookies can bake. Then I show when these waits are normal, when skew or spills make them a problem, and how to check them.

Read More
Four cooks crowd one ticket book at the pass and two of them collide over the front page of a single notepad. In the last panel four notepads sit spread out on the back table and the cooks wait politely behind a velvet rope made of ladles: "Four notepads for the back table. One line for the book."

PAGELATCH Wait Stats: Hot Pages in Memory and tempdb

February 12, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL TempDB, SQL Wait Stats

PAGELATCH wait stats show tasks queuing for a short grab on a page that is already in memory. On Night 12 at the Clipboard Diner, four cooks crowd one ticket book and one notepad. You’ll learn the difference between a latch and a lock, how to read a page like 2:1:1, and how to fix last page inserts and tempdb contention.

Read More
Ace waits at the top of dark basement stairs for ingredients, then a whole crate of lettuce arrives for a single leaf and knocks the salsa jar off the counter into Quinn's hands. Casey says, "A whole crate for one leaf? Fix the reads first."

PAGEIOLATCH Wait Stats: Waiting for Data From Disk

February 9, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL Memory, SQL Scripts, SQL Wait Stats

PAGEIOLATCH wait stats measure queries waiting while data pages are read from disk into memory. On Night 9 at the Clipboard Diner, the prep counter is too small for the menu and the cooks keep sending for things from the basement. Learn the two causes, how to read file latency per file, and the fixes in order.

Read More
SQL SERVER - What is Fill Factor and What is the Best Value for Fill Factor

SQL SERVER – What is Fill Factor and What is the Best Value for Fill Factor

January 31, 2011
Pinal Dave
SQL Performance
SQL Index

What is fill factor and what is the best value for fill factor? I explain how it controls the space used on leaf-level pages and why the default is 100.

Read More
Previous 1 … 35 36 37 38 39 40 41 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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