InnoDB Online DDL Operations with ALGORITHM=INSTANT

You are viewing an old version of this article. View the current version here.

Currently, the following operations are supported by InnoDB for ALGORITHM=INSTANT:

The following will not modify any data files, so that works:

CREATE TABLE t1 (a INT, e ENUM ('red','green'));
ALTER TABLE t ADD COLUMN b INT, ALGORITHM=INSTANT;

But the following will modify data files, so an error is thrown when ALGORITHM=INSTANT is specified:

--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
ALTER TABLE t DROP INDEX b, ALGORITHM=INSTANT;
--error ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
ALTER TABLE t ADD INDEX(b), ALGORITHM=INSTANT;

These specific statement would support any other ALGORITHM option.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.