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
Two icebergs cut at the waterline, the smaller-looking one hiding a huge mass below.

Why Query Cost Percentages in a Plan Mislead You

December 5, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server

Test why query cost percentages are estimates by comparing two statements with STATISTICS IO, TIME, and query DMV counters.

Read More
Gouache painting of a butterfly net on a garden fence holding one vermilion butterfly among resting grey moths

Memory Grant Feedback Events: Capture Them in T-SQL

December 4, 2019
Pinal Dave
SQL Performance
SQL Extended Events, SQL Memory, SQL Scripts

Memory grant feedback events list every query whose memory grant keeps changing, and the moment SQL Server gives up on it. This post creates the Extended Events session in T-SQL, watches it live in SSMS and reads it with one query that names the procedure.

Read More
Two matching kites on the grass, differing only in their tails, one short and red.

Comparing a Good and a Bad Plan for One Query in Query Store

December 3, 2019
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL Performance, SQL Server

Compare a good and a bad plan in Query Store using runtime history, SSMS Compare Showplan, estimates, joins, grants, and parallelism.

Read More
MemoryGrantInfo

SQL SERVER – MemoryGrantInfo Property Explanation

December 2, 2019
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL Server 2019

I have been writing about the Memory Grant Feedback feature. Today we will discuss various properties of MemoryGrantInfo in this blog post.

Read More
An adjustable belt illustrates finding a stable fit

MemoryGrantInfo – What are Different Status of IsMemoryGrantFeedbackAdjusted? – Interview Question of the Week #253

December 1, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Memory, SQL Server

Question: What are Different Status of IsMemoryGrantFeedbackAdjusted (MemoryGrantInfo Property)? Today we will see a consolidated answer to this question.

Read More
Gouache painting of a glass greenhouse with a bench of cream pots and one plant under a bell jar with a vermilion rim

Stop Memory Grant Feedback: Database Setting and Query Hint

November 30, 2019
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL Server Configuration

To stop memory grant feedback, use the hint or the setting that matches the mode of the plan. A tested demo shows that a row mode hint keeps a grant at 13,256 KB, while a batch mode hint changes nothing for a row mode sort. The post also corrects the setting names and shows the persistence switch.

Read More
Gouache painting of a stack of wooden crates with one pear on top and a vermilion padlock, beside smaller crates on a harbor quay

Memory Grant Feedback Loop: When SQL Server Stops Adjusting

November 29, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Memory, SQL Scripts

The memory grant feedback loop adjusts a grant after every run, and a query whose needs swing can send it back and forth. In a tested demo SQL Server stops adjusting on run 33 and falls back to its first grant. The post also shows what SQL Server 2025 does by default.

Read More
Previous 1 … 134 135 136 137 138 139 140 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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