Query Plan Patterns For Windowing Functions: Row Mode vs Batch Mode

Опубликовано: 22 Март 2026
на канале: Erik Darling (Erik Darling Data)
386
46

In this video, I delve into the intricacies of query execution plans when window functions are involved, breaking down the differences between row mode and batch mode, as well as how partition clauses impact these plans. I share insights on recognizing common patterns in query plans and highlight why using batch mode is crucial for optimizing performance with windowing functions. By understanding these nuances, you can better predict and fine-tune your SQL Server queries to achieve more efficient execution. Whether you're a seasoned DBA or just starting out, this content offers valuable tips that can help streamline your database operations.

CHAPTERS

00:00:00 - Introduction to Windowing Function Query Plans
00:02:34 - Physical Appearance Differences Between Row Mode and Batch Mode
00:07:48 - Queries Without Partition By Clause
00:11:59 - Greater Than Predicate in Windowing Functions
00:14:00 - Summary of Key Points
00:15:03 - Indexes, Memory Usage, and Next Video Preview

━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 TRAINING & COURSES
━━━━━━━━━━━━━━━━━━━━━━━━━━
Get AI-Ready With Erik
https://training.erikdarling.com/get-...

SQL Server Performance Engineering Course
https://training.erikdarling.com/sql-...

Learn T-SQL with Erik
https://training.erikdarling.com/lear...

Everything Bundle:
https://training.erikdarling.com/?cou...

━━━━━━━━━━━━━━━━━━━━━━━━━━
🛠️ CONSULTING & SERVICES
━━━━━━━━━━━━━━━━━━━━━━━━━━
Need SQL Server performance help?
https://training.erikdarling.com/sqlc...

━━━━━━━━━━━━━━━━━━━━━━━━━━
💬 CONNECT
━━━━━━━━━━━━━━━━━━━━━━━━━━
Ask questions at Office Hours
https://erikdarling.com/officehours/

Become a channel member
   / @erikdarlingdata  
━━━━━━━━━━━━━━━━━━━━━━━━━━