The Ascending Key Problem
2025TL; DR
You're constantly loading new sales data in, but when users run reports for recent sales like today or yesterday, you get bad query plans. Fix it with trace flags 2389 and 4139.
Session Details
You're constantly loading new sales data in, but when users run reports for recent sales like today or yesterday, you get bad query plans.
Brent Ozar will explain how statistics are involved, why you can't update them frequently enough to get it right, and how trace flags 2389 and 4139 help performance.
This session is for database administrators who are comfortable reading query plans and interpreting the output of DBCC SHOW_STATISTICS.
Brent Ozar will explain how statistics are involved, why you can't update them frequently enough to get it right, and how trace flags 2389 and 4139 help performance.
This session is for database administrators who are comfortable reading query plans and interpreting the output of DBCC SHOW_STATISTICS.
3 things you'll get out of this session
* Learn what the Ascending Key Problem is
* See improvements in recent compatibility levels
* Identify when those still aren't enough, and you need to use trace flags 2389 and 4139
Speakers
Brent Ozar's other proposed sessions for 2026
20 Years of the Cloud: What Changed, What Didn’t, and What’s Next - 2026
AI in Your Career: Sidekick, Hero, or Villain? - 2026
Calling AI from T-SQL: Real-Life Lessons from sp_BlitzCache - 2026
Dev-Prod Demon Hunters: Finding the Real Cause of Production Slowness - 2026
Pokémon Battle, Choose Your Index: You Can’t Have Them All - 2026
The Big Red Button: How to Use sp_Kill - 2026
Watch Brent Tune a Query in SQL Server 2025 - 2026