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
2161
November 24, 2016 08:48AM
1114
November 24, 2016 11:32AM
Re: Performance issues afre upgrading to 5.7
1089
November 25, 2016 07:28AM
1278
November 25, 2016 06:16AM
965
November 25, 2016 06:59AM
1066
November 25, 2016 07:53AM
1036
November 25, 2016 08:18PM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
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.