Re: not optimizing the table after index is created
Posted by:
Rick James
Date: October 16, 2011 11:02AM
OPTIMIZE TABLE is useful for MyISAM. For compatibility, it exists for InnoDB, but is implemented using other commands. OPTIMIZE table is virtually useless for InnoDB. It is not needed after adding an index (or any other ALTER) since the intent of OPTIMIZE has already been performed by that action.
What did you do? CREATE INDEX? ALTER TABLE ADD INDEX?
Please provide SHOW CREATE TABLE.
Subject
Views
Written By
Posted
3091
October 15, 2011 04:04AM
Re: not optimizing the table after index is created
1594
October 16, 2011 11:02AM
1219
October 18, 2011 04:24AM
1079
October 18, 2011 09:31PM
1080
October 20, 2011 12:10AM
1246
October 20, 2011 09:30PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.