MySQL Forums
Forum List  »  Optimizer & Parser

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.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: not optimizing the table after index is created
1458
October 16, 2011 11:02AM


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.