This feature speeds up the creation of secondary index. After the feature is enabled, secondary indexes can be concurrently sorted in a temp table using multiple threads. The feature also optimizes the operation of locking the flush list when loading bulk data, effectively reducing the time consumed by CREATE INDEX and the impact on concurrent DML operations.
You need to perform DDL operations frequently on your database and may encounter the following DDL-related problems:
To solve the above common problems, the TXSQL kernel team has optimized the operation of locking the flush list when loading bulk data, based on in-depth analysis and testing in multiple scenarios. The optimization effectively reduces the time consumed by CREATE INDEX, the impact on concurrent DML operations, and the impact caused by DDL operations.
Use sysbench to test database performance when importing two billion rows of data (about 453 GB) before and after FAST DDL is enabled.
mysql> set global innodb_fast_ddl=ON;
Query OK, 0 rows affected (0.00 sec)
When the feature is disabled, the operation takes 4,395 seconds; when the feature is enabled, the operation takes 2,455 seconds.
Use the innodb_fast_ddl
parameter to enable or disable this feature.
Parameter | Effective Immediately | Type | Default Value | Valid Values/Value Range | Description |
---|---|---|---|---|---|
innodb_fast_ddl | Yes | bool | OFF | {ON,OFF} | Enable or disable FAST DDL |
Note:Currently, you cannot directly modify the values of the above parameter. If needed, submit a ticket for assistance.
Was this page helpful?