You need to enable JavaScript to run this app.
RDS for MySQL

RDS for MySQL

Copy page
Download PDF
Stability
Dropping a large table asynchronously
Copy page
Download PDF
Dropping a large table asynchronously
This topic describes how to use RDS for MySQL to drop large tables asynchronously.​
Background​
When the data file of a table is large, deleting the table synchronously can impact the running instance and cause I/O jitters.​
Function introduction​
RDS for MySQL supports dropping large tables asynchronously. After you enable the feature to drop large tables asynchronously, the kernel automatically deletes large tables asynchronously, which reduces the performance fluctuations on the instance caused by the delete operation. You do not need to perform any other operations after deleting a table. The kernel automatically completes the remaining tasks. When you delete a large table asynchronously, its data file is first renamed to a temporary file. Then, a background thread smoothly truncates the temporary file.​
Use cases​
This feature is suitable for business scenarios that require deleting large tables and are sensitive to performance fluctuations.​
Supported version​
  • MySQL 5.7 version, and the kernel minor version is MySQL 5.7.32_20241015 and above.​
  • MySQL 8.0 version, and the kernel minor version is MySQL 8.0.32_20240215 and above.​
  • MySQL 8.4 version, and the kernel minor version is MySQL 8.4.7_20260415 and above.​
tip​
You can view the kernel minor version of an instance by Viewing instance information. If the kernel minor version of your instance is not within the supported kernel minor version range, you can Manually upgrading the instance kernel minor version.​
Instructions​
Asynchronous deletion of large tables is disabled by default. You can use this feature by setting the modifiable parameters loose_innodb_data_file_logic_drop and loose_innodb_data_file_logic_drop_max_size.​
  • Modify loose_innodb_data_file_logic_drop to ON to enable this feature.​
  • Modify loose_innodb_data_file_logic_drop_max_size to specify the file size to be truncated in the background each time a large table is deleted asynchronously.​
tip​
The background truncation frequency of RDS for MySQL is 5 times per second. For example, if loose_innodb_data_file_logic_drop_max_size is configured as 1024 MiB, theoretically, 5 GiB of data files are truncated per second.​
For more information about loose_innodb_data_file_logic_drop and loose_innodb_data_file_logic_drop_max_size, refer to the following table.​
​
Parameter name​
Parameter description​
loose_innodb_data_file_logic_drop​
Specifies whether to enable asynchronous cleanup of large tables. Values:​
  • OFF: disable (Default).​
  • ON: enable.​
tip​
This parameter takes effect after modification without an instance restart.​
loose_innodb_data_file_logic_drop_max_size​
The size of each file to be truncated in the background when asynchronously deleting large tables. Value range: 128-2048. Default value: 1024. Unit: MiB.​
tip​
  • This parameter takes effect after modification without an instance restart.​
  • The current truncate frequency for RDS for MySQL is 5 times per second, and the theoretical speed for asynchronously deleting large tables is loose_innodb_data_file_logic_drop_max_size * 5.​
​
Procedure​
You can use this feature by setting the modifiable parameters loose_innodb_data_file_logic_drop and loose_innodb_data_file_logic_drop_max_size. RDS for MySQL supports modifying parameters through the console and Open API.​
  • Modify through the console​
  • Modify via Open API​
​
Last updated: 2026.05.28 15:17:48