-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UCP: Support Invisible Indexes #9246
Comments
Note that MySQL 8.0 will likely support INVISIBLE columns in the future as well. We can tell this because functional indexes in 8.0 are based on virtual columns + invisible columns. The semantics behind INVISIBLE columns are harder than invisible indexes, but assuming they are added to MySQL, we should plan on adding this feature too. |
@morgo We will discuss it. |
Will this feature be appended into 4.0? |
Let me implement this feature. |
This feature needs to be tested more systematically, reopen this issue to facilitate tracking. |
Description
MySQL supports invisible indexes; that is, indexes that are not used by the optimizer.
This is a useful feature when you want to drop an index in a safe way. Invisible indexes make it possible to test the effect of removing an index on query performance, without making a destructive change that must be undone should the index turn out to be required. Dropping and re-adding an index can be expensive for a large table, whereas making it invisible and visible are fast, in-place operations.
Support the option of
VISIBLE | INVISIBLE
.Also, consider the following:
Score
Mentor(s)
Contact the mentors: #tidb-challenge-program channel in TiDB Community Slack Workspace
Recommended Skills
Learning Materials
MySQL's document for syntax reference.
TiDB DDL architecture
Time
GanttStart: 2020-07-10
GanttDue: 2020-08-15
GanttProgress: 100%
The text was updated successfully, but these errors were encountered: