Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't optimize innoDB table

As my first message here, i don't know if i have to answer or post a new message. I have the same problem as here and the one and only given answer doesn't help me (except if the documentation is incorrect). "You can make OPTIMIZE TABLE work on other storage engines", but my engine is InnoDB. I thank you for your help. S.

like image 450
syndrael Avatar asked Oct 04 '10 13:10

syndrael


2 Answers

OPTIMIZE TABLE works fine on InnoDB tables. The message that says "Table does not support optimize, doing recreate + analyze instead" is purely informational. You can safely ignore that message.

like image 141
Ike Walker Avatar answered Oct 30 '22 03:10

Ike Walker


You cannot IGNORE the result... that means its doing a VERY intensive operation instead of a light one... one a very large table (>100G) this could be hours instead of minutes.

like image 2
Joe Avatar answered Oct 30 '22 02:10

Joe