首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >MySQL 8.0.29 新特性!

MySQL 8.0.29 新特性!

原创
作者头像
王文安@DBA
修改2022-05-20 14:56:38
修改2022-05-20 14:56:38
1.1K0
举报

Online DDL improve:instant algorithm supports more ALTER

InnoDB: InnoDB now supports ALTER TABLE ... DROP COLUMN operations using ALGORITHM=INSTANT.

Operations that support ALGORITHM=INSTANT only modify metadata in the data dictionary. Table data is unaffected, making the operations instantaneous. If not specified explicitly, ALGORITHM=INSTANT is used by default by DDL operations that support it.

Prior to MySQL 8.0.29, an instantly added column could only be added as the last column of the table. From MySQL 8.0.29, an instantly added column can be added to any position in the table.

Instantly added or dropped columns create a new row version. Up to 64 row versions are permitted. A new TOTAL_ROW_VERSIONS column was added to the INFORMATION_SCHEMA.INNODB_TABLES table to track the number of row versions.

For more information about DDL operations that support ALGORITHM=INSTANT, see Online DDL Operations.

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Online DDL improve:instant algorithm supports more ALTER
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档