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
Faster index rename #14953
Comments
|
@ibennetch @williamdes what do you think? I think it would be a good enhancement. |
|
@shucon I think adding the new syntax could be great is we detect that the version supports it :) |
|
@williamdes, Hey don't you think we already have this feature. See this |
|
@kartik1000 maybe I’m misunderstanding something, but think that interface uses the |
@kartik1000 as @ibennetch explained, this is more about the SQL syntax to use for renaming an index :) |
|
Yup @ibennetch and @williamdes, got it from the first line I thought it was about front-end. That's why the issue seemed a bit weird to me. Thanks for the Explaination :) |
|
@kartik1000 do you want to implement the change ? |
|
@williamdes Yes surely. |
|
@williamdes Shall I add another button of 'rename' in addition to edit and drop or should it work through edit only? |
|
If RENAME support changing the definition of the index then use edit. |
|
I will add a button then because it only renames the button. I referred to the documentation given in description of the issue |
|
@williamdes Does something like this look good? |
|
@kartik1000 Yeah, looks good ! |
|
@williamdes I have implemented this feature but this is not supported by MariaDB and is supported by only MySQL after MySQL 5.7. I should have checked this first 😅 . What should I do now? |
|
@kartik1000 I think you need to hide the button or disable it |
|
@williamdes I thought we can keep the button for MariaDB but it will perform task through add/drop instead of rename. What do you think? |
|
Yeah, very good idea! |
…ax of MySQL Signed-off-by: Kartik Kathuria <kathuriakartik0@gmail.com>
Signed-off-by: William Desportes <williamdes@wdes.fr>
Ref: 3dad3b5 Signed-off-by: William Desportes <williamdes@wdes.fr>
Ref: 3dad3b5 Signed-off-by: William Desportes <williamdes@wdes.fr>


phpMyAdmin is still using the old DROP INDEX and ADD INDEX method when someone tries to rename index/key. It's not the problem for small tables but it's time consuming for a larger ones.
As of MySQL 5.7 version RENAME INDEX is possible through ALTER TABLE (please see http://dev.mysql.com/doc/refman/5.7/en/alter-table.html). It would be nice if we could have a possibility of RENAME INDEX if nothing else except name has changed during index/key edit.
Thanks.
The text was updated successfully, but these errors were encountered: