The SQLServerFast Execution Plan Video Training – Block 6, basic level

The best way to fix bad performance of SQL Server queries is to look at their execution plans. The SQLServerFast Execution Plan Video Training helps you read and understand those execution plans. For more information about this video course, click here.

This is the basic level of block 6: Sorting and grouping. In these videos, you will learn the basics of grouping and aggregating, and sorting the data. You will also learn what segmenting is and what its benefits are, and you will gain insight in how the Window Spool operator evaluates aggregations with a window frame (OVER clause with ORDER BY).

A total of five chapters, with a total viewing time of 2:42:12 (1:11:34 demos).
Sold for $24.95 per video, or $99.95 if you purchase the whole level at once.

The videos below will play the applicable video if you are logged in to Vimeo and if you have previously purchased access to that video, or to the whole level. If not, they will play the trailer instead. The “Buy” button allows you to log in and purchase the video. Or you can use the “Buy all” link, on the trailer, or on the left hand side of the popup, to benefit from the discounted price for buying the whole level at once.

(Note: If you are logged in to Vimeo and still see the trailer instead of the video, click the “buy” or “buy all” button. That should refresh the settings and show the video).

I have received reports of customers who were unable to purchase these videos. They were presented with a message “This video is not for your region”. This is not correct, there are no regional restrictions on these videos. I have raised a ticket with Vimeo on November 8, 2025. So far, they have not resolved the issue. If you run into this issue, then please reach out to me, so we can try to find a workaround.

See https://sqlserverfast.com/video for more information.

To download the slides, go to https://sqlserverfast.com/slides
To download the demo code, go to https://sqlserverfast.com/democode

Trailer

View time: 5:21.

A short overview of the contents of each chapter in this level, with fragments from each video.

Chapter 1: Stream Aggregate

View time: 28:17 (13:05 demos).

Operators covered: Stream Aggregate.
Aggregation basics.
Performance characteristics of Stream Aggregate.
Detailed visualization of the Stream Aggregate algorithm.
Requirements for using Stream Aggregate.
Properties of the Stream Aggregate operator.
Normal aggregation, scalar aggregation, and using aggregation for DISTINCT.

Chapter 2: Hash Match for aggregation

View time: 28:29 (6:35 demos).

Operators covered: Hash Match.
Performance characteristics of Hash Match for aggregation.
Detailed visualization of the Hash Match algorithm for aggregation.
Memory Grant for Hash Match aggregation.
Properties of the Hash Match operator for aggregation.

Chapter 3: Sort

View time: 25:22 (11:39 demos).

Operators covered: Sort.
Performance characteristics of Sort.
Memory Grant for Sort.
Memory Grant Feedback.
The cost of sorting data, and how the optimizer tries to avoid it.
Logical operations: Sort, Distinct Sort, Top N Sort.
Properties of the Sort operator.

Chapter 4: Segment

View time: 31:25 (16:53 demos).

Operators covered: Segment, Sequence Project.
Segmenting versus aggregation.
Performance characteristics of Segment.
Properties of the Segment operator.
Requirements for using Segment.
The segment column and its significance.
Optimizer shortcomings when multiple OVER clauses are mixed in a query.

Chapter 5: Window Spool

View time: 48:39 (23:22 demos).

Operators covered: Window Spool, Stream Aggregate.
Window clause with or without frame specification.
Performance characteristics of Window Spool.
Properties of the Window Spool operator.
Requirements for using Window Spool.
Detailed visualization of the Window Spool algorithm.
Differences for CURRENT ROW, UNBOUNDED PRECEDING, and UNBOUNDED FOLLOWING.

Differences for RANGE versus ROWS.
Fast-track optimization.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close