TRUNCATE TABLE on MySQL InnoDB databases
Having come up against the extremely poor performance of using TRUNCATE instead of DELETE on MySQL InnoDB tables (see previous post MySQL Truncate slow performance problems) I thought I better come up with a solution that didn’t mean leaving a table to clear for an hour. The solution is to use a combination of SHOW …