MySQL Forums
Forum List  »  Optimizer & Parser

Re: primary key vs covered index
Posted by: Øystein Grøvlen
Date: December 01, 2016 01:39AM

Hi,

Assuming this is an InnoDB table, there is no advantage in using the secondary index over the PRIMARY index. The number of rows to access will be the same, and for InnoDB tables, a PRIMARY index is covering by definition.

Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway

Options: ReplyQuote


Subject
Views
Written By
Posted
1324
November 30, 2016 09:55AM
Re: primary key vs covered index
718
December 01, 2016 01:39AM
699
December 01, 2016 03:38AM
741
December 01, 2016 03:57AM
650
December 01, 2016 04:16AM
581
December 01, 2016 04:25AM


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.