Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Conversation

@JesperWisborgKrogh
Copy link
Contributor

By replacing the LEFT JOIN on performance_schema.file_summary_by_instance with a view using the TEMPTABLE algorithm selecting the required data, the optimizer can add an ad-hoc index (auto key) which can greatly improve performance.

Together with the change to the extract_schema_from_file_name() and extract_table_from_file_name() functions so they return a varchar(64), the improvement on my laptop for 100 schemas with 100 tables each is from 14+ minutes to <30 seconds for schema_table_statistics.

…e TEMPTABLE algorithm to allow the optimizer to add an ad-hoc index like it can on the matialised subqueries.
…iew using the TEMPTABLE algorithm to allow the optimizer to add an ad-hoc index like it can on the matialised subqueries.
…istics and schema_table_statistics_with_buffer
MarkLeith added a commit that referenced this pull request Sep 1, 2014
…stics_performance

schema_table_statistics and schema_table_statistics_with_buffer performance
@MarkLeith MarkLeith merged commit 9ffcfad into mysql:development Sep 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants