Starburst MySQL connector#
The Starburst MySQL connector is an extended version of the MySQL Connector with configuration and usage identical.
The additional features of the connector require a valid Starburst Enterprise Presto license, unless otherwise noted.
The following improvements are included:
The connector includes a number of performance improvements, detailed in the following sections.
This feature is available for free, and does not require a valid license.
The MySQL connector supports table and column statistics to improve query processing performance based on the actual data in the data source.
The statistics are collected by MySQL and retrieved by the connector.
The table-level statistics are based on MySQL’s
table. The column-level statistics are based on MySQL’s index statistics
INFORMATION_SCHEMA.STATISTICS table. The connector can return column-level
statistics only when the column is the first column in some index.
MySQL database can automatically update its table and index statistics. In some cases, you may want to force statistics update (e.g. after creating new index or after changing data in the table). You can do that by executing the following statement in MySQL Database.
ANALYZE TABLE table_name;
MySQL and Presto may use statistics information in different ways. For this reason, the accuracy of table and column statistics returned by the MySQL connector might be lower than than that of others connectors.
Improving statistics accuracy
You can improve statistics accuracy with histogram statistics (available since MySQL 8.0). To create histogram statistics execute the following statement in MySQL Database.
ANALYZE TABLE table_name UPDATE HISTOGRAM ON column_name1, column_name2, ...;
Refer to MySQL documentation for information about options, limitations and additional considerations.
Dynamic filtering is enabled by default. It causes the connector to wait for dynamic filtering to complete before starting a JDBC query.
You can disable dynamic filtering by setting the property
dynamic-filtering.enabled in your catalog properties file to
Caching table projections#
The connectors supports table scan redirection to improve performance and reduce load on the data source.