Re: Performance issues afre upgrading to 5.7
Peter Brawley Wrote:
-------------------------------------------------------
> Pretty obviously it's a bug they're having
> difficulty with.
>
> A workaround: pick off the rows column value from
> ...
>
> EXPLAIN SELECT COUNT(PKcolname) FROM tblname USE
> INDEX (PRIMARY)
Hi,
The problem in this case s actually that the primary index is used for the counting instead of another index. Hence, USE INDEX (PRIMARY) would be counter productive. As I wrote in another answer, from 5.7.18, it will be possible to FORCE a specific index to be used.
Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway
Subject
Views
Written By
Posted
2131
November 24, 2016 08:48AM
1103
November 24, 2016 11:32AM
Re: Performance issues afre upgrading to 5.7
1073
November 25, 2016 07:28AM
1265
November 25, 2016 06:16AM
954
November 25, 2016 06:59AM
1057
November 25, 2016 07:53AM
1027
November 25, 2016 08:18PM
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.