v.20.5Performance Improvement
Optimization of GROUP BY with Table Sorting Key Using optimize_aggregation_in_order Setting
Optimization of GROUP BY with respect to table sorting key, enabled with optimize_aggregation_in_order setting. #9113 (dimarub2000).