MySQL HeatWave User Guide

5.8 Optimize Workloads for OLAP

Workload optimization for online analytical processing, OLAP, includes using dictionary encoding for certain string columns and defining data placement keys to optimize for JOIN and GROUP BY query performance. Apply these optimizations manually, or use MySQL HeatWave Autopilot Advisor, which includes the following:

Advisor is workload-aware and provides recommendations based on machine learning models, data analysis, and MySQL HeatWave query history. Advisor analyzes the last 1000 successfully executed MySQL HeatWave queries.

Advisor is implemented as a stored procedure named heatwave_advisor, which resides in the MySQL sys schema.

To run Advisor for OLAP workloads, the MySQL HeatWave Cluster must be active, and the user must have the following MySQL privileges: