Execution plan operations – aggregates
On to aggregates.
I’m not going to dwell too long on the logical operators for aggregates, as they aren’t as interesting as the joins were. Rather I’m going to concentrate on the physical operators involved.
The two physical operators used for aggregates (and a couple of other logical operations) are:
- Stream Aggregate
- Hash Aggregate
Stream Aggregate
The stream aggregate is the faster and more efficient of the aggregate operators. For it to be used, the input rowset must be sorted in order of the grouping columns.