GROUP BY with aggregate functions. The optimizer substitutes it for the base-table scan when a query’s grouping structure matches.
This page is the syntax reference. For how the index is maintained, the rule that a query must group by or filter on the leading grouping column, tuning, and limitations, see Aggregating index.
Syntax
Parameters
Example
See also
- Aggregating index covers the mechanism, usage rules, best practices, and limitations.
CREATE INDEX,DROP INDEX, andEXPLAIN.information_schema.indexes.