mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-7317: Make an index ignorable to the optimizer
This feature adds the functionality of ignorability for indexes. Indexes are not ignored be default. To control index ignorability explicitly for a new index, use IGNORE or NOT IGNORE as part of the index definition for CREATE TABLE, CREATE INDEX, or ALTER TABLE. Primary keys (explicit or implicit) cannot be made ignorable. The table INFORMATION_SCHEMA.STATISTICS get a new column named IGNORED that would store whether an index needs to be ignored or not.
This commit is contained in:
@@ -22270,8 +22270,8 @@ END//
|
||||
CALL sp6 (10, 20, 30, 40, 50);
|
||||
f1 f2 f3
|
||||
10 30 50
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
|
||||
res_t9 1 index_1 1 f1 A NULL 5 NULL YES BTREE
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
|
||||
res_t9 1 index_1 1 f1 A NULL 5 NULL YES BTREE NO
|
||||
DROP PROCEDURE sp6;
|
||||
drop table res_t9;
|
||||
|
||||
|
Reference in New Issue
Block a user