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 rotary egg beater rests between separate mixing bowls and a jug of already beaten mixture

CTE Referenced Twice: Why the Query Runs It Twice

April 16, 2012
Pinal Dave
SQL Performance
CTE, Execution Plan, SQL Group By, Temp Table

Writing a CTE name two times can mean doing the work two times. Two small demos show when a temp table helps and when it only adds cost.

Read More
An oyster knife opens one shell beside a row of shells whose meat still needs separate access

Plan Cache Key Lookups: Finding the Worst Ones With XQuery

March 24, 2012
Pinal Dave
SQL Performance
Execution Plan, SQL Cache, SQL Index, SQL XML

Not every key lookup needs fixing. Rank statements by reads, find the lookups with XQuery, then test the smallest index change on one call.

Read More
A ski boot remains attached to a ski by a closed heel binding beside the open toe release

Computed Column UDFs: Why Every Query on the Table Goes Serial

March 22, 2012
Pinal Dave
SQL Performance
Computed Column, Execution Plan, Parallel, SQL Function

A computed column that calls a scalar function can block parallel plans for queries that never read it. Here is how to spot it and test a fix.

Read More
Crossed pull cords immobilize the slats of a single Venetian blind

Intra-Query Parallel Deadlock: When One Query Blocks Itself

March 13, 2012
Pinal Dave
SQL Performance
Deadlock, MAXDOP, Parallel, SQL Extended Events

No error, no deadlock graph, just a report that is slow on some runs. Here is a demo where one query deadlocks with itself, and how to fix it.

Read More
A grain flail beside aligned stalks with varied individual seed heads

A Separate Clustered Index for a Nonclustered GUID Primary Key

March 12, 2012
Pinal Dave
SQL Performance
Database, SQL Scripts, SQL Server

The primary key and the clustered index are two different jobs. This demo keeps the GUID as the public ID and clusters on an identity column instead.

Read More
A saved dressmaking pattern on a hook, fabric and red pins ready on the table

Optimized Plan Forcing: Cutting Compile Time in SQL Server 2022

March 6, 2012
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Server 2022

Check optimized plan forcing in SQL Server 2022 through scoped configuration and Query Store replay flags, then compare compile duration.

Read More
SQL SERVER - A Quick Look at Performance - A Quick Look at Configuration

SQL SERVER – A Quick Look at Performance – A Quick Look at Configuration

December 13, 2011
Pinal Dave
SQL Performance
SQL Scripts

Before I answer a performance question, I need to know the environment. Here is how I take a quick look at configuration to get the full picture fast.

Read More
Previous 1 … 74 75 76 77 78 79 80 … 127 Next
  • Books
  • Testimonials
  • Privacy Policy

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