Re: primary key vs covered index
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
Subject
Views
Written By
Posted
1417
November 30, 2016 09:55AM
Re: primary key vs covered index
768
December 01, 2016 01:39AM
756
December 01, 2016 03:38AM
796
December 01, 2016 03:57AM
696
December 01, 2016 04:16AM
675
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.