schema_redundant_indexes和x $ schema_flattened_keys视图
该schema_redundant_indexes
视图显示的索引与其他索引重复或被其他索引冗余。该x$schema_flattened_keys
视图是的辅助视图schema_redundant_indexes
。
在下面的列描述中,主要索引是使冗余索引成为冗余索引的索引。
该schema_redundant_indexes
视图包含以下列:
table_schema
包含表的架构。
table_name
包含索引的表。
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_name
包含索引的表。
index_name
索引名称。
non_unique
索引中非唯一列的数量。
subpart_exists
索引是否仅索引列的一部分。
index_columns
索引中的列名。