MySQL Forums
Forum List  »  Optimizer & Parser

Re: not optimizing the table after index is created
Posted by: Rick James
Date: October 20, 2011 09:30PM

OPTIMIZE is not necessary. Your table is fine.

Other issues...
PRIMARY KEY (`msg_id`),
KEY `indx_msg_id_1` (`msg_id`)
A PRIMARY KEY is a KEY. That is, the "KEY" is redundant, and can be DROPped.

What INDEX did you create? What query was it intended to support? The question is not about the useless OPTIMIZE, but about whether the CREATE INDEX provided something useful.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: not optimizing the table after index is created
1014
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.