mysql - What does "Table does not support optimize, doing recreate + analyze instead" mean? -
i working on mysql 5.5 , trying index rebuild using optimize table
query. getting error below:
table not support optimize, doing recreate + analyze instead
what mean? mysql engine not allowing index rebuild? being done behind message, @ mysql 5.5 engine level?
that's informational message.
likely, you're doing optimize on innodb table (table using innodb storage engine, rather myisam storage engine).
innodb doesn't support optimize way myisam does. different. creates empty table, , copies of rows existing table it, , deletes old table , renames new table, , runs analyze gather statistics. that's closest innodb can doing optimize.
the message getting mysql server repeating innodb storage engine told mysql server:
table not support optimize innodb storage engine saying...
"i (the innodb storage engine) don't optimize operation friend (the myisam storage engine) does."
"doing recreate + analyze instead" innodb storage engine saying...
"i have decided perform different set of operations achieve equivalent result."
Comments
Post a Comment