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
1052
November 30, 2016 09:55AM
Re: primary key vs covered index
546
December 01, 2016 01:39AM
555
December 01, 2016 03:38AM
581
December 01, 2016 03:57AM
520
December 01, 2016 04:16AM
456
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.