MySQL Forums
Forum List  »  Newbie

difference between single index and multiple index
Posted by: H H
Date: March 04, 2016 12:13PM

Is there an advantage or disadvantage to creating multiple individual indexes on columns vs. a single index with multiple columns? IOW:

ALTER TABLE `cc_auth_dtl`
ADD INDEX `site_id` (`site_id`);

ALTER TABLE `cc_auth_dtl`
ADD INDEX `business_date` (`business_date`);

VS.

ALTER TABLE `cc_auth_dtl`
ADD INDEX `site_id_business_date` (`site_id`, `business_date`);

Is one faster or slower than the other? Are there any other differences? Thanks!

Options: ReplyQuote


Subject
Written By
Posted
difference between single index and multiple index
H H
March 04, 2016 12:13PM


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.