Get the App
SLTechnology News&Howtos  ›  Database  › 

MariaDB 10.3 instant ADD COLUMN level 100 million table millisecond plus field

Shulou Source: shulou.com Published: 2022-06-01 07:15:24 10月25日 Update

Adding fields is painful, and tables need to be rebuilt, especially for large tables at the level of 100 million. Although Online DDL can avoid locking tables, if it takes 30 minutes to execute on the master database, then the master-slave replication will be delayed if you copy to the slave database. With the instant ADD COLUMN feature, the fields are added as long as the soot is popped, and you can enjoy the flexibility and convenience of unstructured storage like MongoDB.

Limit

1. If AFTER is specified, the field must be in the last column, otherwise the table will be re-established

2. Not applicable to ROW_FORMAT = COMPRESSED

3. DROP COLUMN needs to rebuild the table.

Tags: Fields discomfort pain master and slave just need time is in soot property level structure enhancement storage delay structure restriction Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Xiaomi NVidia Linux vpn