Re: InnoDB Table - Instant Add Column taking a long time
Adding a nullable column with ALGORITHM=INSTANT should normally be a metadata-only operation, even on a very large InnoDB table. I'd investigate a few things before cancelling or attempting another ALTER:
1) Metadata locks: Check performance_schema.metadata_locks for pending or granted locks on the table. A long-running transaction can prevent the ALTER from acquiring the required exclusive metadata lock.
2) Active transactions: Check information_schema.innodb_trx for transactions that have been open for a long time, even if they aren't actively writing.
3) Instant DDL history: Check INFORMATION_SCHEMA.INNODB_TABLES.TOTAL_ROW_VERSIONS for this table. MySQL 8.0 supports up to 64 row versions for instant column operations.
4) Replication: Check replica status and disk usage to determine whether the observed storage growth is related to replication or other background activity.
Also, since you're explicitly specifying ALGORITHM=INSTANT, MySQL should return an error if the operation cannot use that algorithm rather than silently falling back to a table-copy operation.
I'd first investigate metadata locks and long-running transactions. The 95 GB table size alone should not explain a 10–15 minute instant column addition.
Herrick, DevOps Engineer, @accuweb.cloud
Subject
Views
Written By
Posted
555
November 26, 2025 12:27AM
Re: InnoDB Table - Instant Add Column taking a long time
32
November 03, 2026 07:30AM
Sorry, only registered users may post in this forum.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.