Categories
Practice

A quicker drop table within MySQL

Whilst a truncate table operation is underway a lock mutex around the table is created to ensure data consistency; if using innodb file per table the physical .ibd file must be removed which is a painfully slow operation under ext3.

via A quicker drop table within MySQL: