26.4.3.27 schema_redundant_indexes 和 x $ schema_flattened_keys 视图
schema_redundant_indexes视图显示的索引与其他索引重复或被它们多余。 x$schema_flattened_keys视图是schema_redundant_indexes的助手视图。
在下面的列描述中,主要索引是使冗余索引成为冗余索引的索引。
schema_redundant_indexes视图包含以下列:
table_schema
包含 table 的架构。
table_name
包含索引的 table。
redundant_index_name
冗余索引的名称。
redundant_index_columns
冗余索引中的列名称。
redundant_index_non_unique
冗余索引中非唯一列的数量。
dominant_index_name
主导索引的名称。
dominant_index_columns
优势索引中的列名。
dominant_index_non_unique
主索引中非唯一列的数量。
subpart_exists
索引是否仅索引列的一部分。
sql_drop_index
要删除冗余索引的语句。
x$schema_flattened_keys视图包含以下列:
table_schema
包含 table 的架构。
table_name
包含索引的 table。
index_name
索引名称。
non_unique
索引中非唯一列的数量。
subpart_exists
索引是否仅索引列的一部分。
index_columns
索引中的列名。