MySQL Forums
Forum List  »  Performance

Re: Index suggestion needed for performance improvement
Posted by: Rick James
Date: October 04, 2015 01:22PM

> also is there any drawbacks if i create too many indexes ?

Yes, but generally the drawbacks are outweighed by the benefits.

Drawbacks (all minor):

* More work on INSERT (especially for UNIQUE).
* If you UPDATE a column that is in an index, a 'row' must be deleted from one spot in the index and re-inserted in another spot.
* The Optimizer considers all indexes, so is slowed down.
* You are likely to be adding indexes that will never be used. (I don't see any 'redundant' indexes in your table now.)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Index suggestion needed for performance improvement
871
October 04, 2015 01:22PM


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.