sql: introduce invisible index#3011
Merged
Merged
Conversation
Deardrops
commented
May 9, 2020
| - 不支持 `VISIBLE/INVISIBLE` 的索引 | ||
| - 其他类型的 Index Type (HASH/BTREE/RTREE) 只有语法支持,功能不支持 | ||
| + Add Column | ||
| - 不支持同时创建多个列 |
Contributor
Author
There was a problem hiding this comment.
This feature has implemented in TiDB, this line should be removed.
bb7133
reviewed
May 9, 2020
| ERROR 3522 (HY000): A primary key index cannot be invisible | ||
| ``` | ||
|
|
||
| 这里的**主键**包括隐式的主键,隐式主键指的是当表中不存在显式的主键时,第一个 UNIQUE 索引(要求满足索引上的每一列都是 NOT NULL)会成为隐式的主键。 |
Member
There was a problem hiding this comment.
please describe that implict PK doesnt exist in tidb actaully, but we treat it exists so that invisible index behaves the same with mysql
Contributor
|
@Deardrops Does this PR apply to v4.0? |
Contributor
Author
@TomShawn This PR only apply to |
AilinKid
reviewed
May 9, 2020
Contributor
Author
|
@AilinKid Addressed, PTAL |
Contributor
Author
|
@TomShawn this PR has LGT2, PTAL |
Contributor
|
@TomShawn PTAL |
rleungx
pushed a commit
to rleungx/docs-cn
that referenced
this pull request
May 22, 2020
* sql: introduce invisible index * address comment * address comment * refine format Co-authored-by: Arenatlx <ailinsilence4@gmail.com> Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
Contributor
|
I'll add this document in TOC after this week. |
5 tasks
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is changed, added or deleted? (Required)
Now we implement new feature invisible index in TiDB, we introduce it in docs and update some docs related to it.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
OptimizerUseInvisibleIndexesfromSmtmCtxtoSessionVarstidb#17040