mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
(Part#2) MDEV-13049 Querying INFORMATION_SCHEMA becomes slow in MariaDB 10.1
This is a 10.3 specific part of MDEV-13049. It disables automatic sorting for "SELECT .. FROM INFORMATION_SCHEMA.{SCHEMATA|TABLES}" and adjusts the affected tests accordingly.
This commit is contained in:
@ -3,7 +3,8 @@
|
||||
|
||||
CREATE TEMPORARY TABLE table_list (id INT AUTO_INCREMENT, PRIMARY KEY (id)) AS
|
||||
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
|
||||
WHERE TABLE_SCHEMA='performance_schema';
|
||||
WHERE TABLE_SCHEMA='performance_schema'
|
||||
ORDER BY TABLE_NAME;
|
||||
SELECT COUNT(*) FROM table_list INTO @table_count;
|
||||
|
||||
# For each table in the performance schema, attempt HANDLER...OPEN,
|
||||
@ -67,11 +68,11 @@ SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=34;
|
||||
HANDLER performance_schema.mutex_instances OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`mutex_instances` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=33;
|
||||
HANDLER performance_schema.hosts OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`hosts` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=32;
|
||||
HANDLER performance_schema.host_cache OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`host_cache` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=32;
|
||||
HANDLER performance_schema.hosts OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`hosts` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=31;
|
||||
HANDLER performance_schema.file_summary_by_instance OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`file_summary_by_instance` doesn't have this option
|
||||
|
Reference in New Issue
Block a user