Re: MySQL MyISAM sorting query makes it slower
Posted by:
Rick James
Date: April 13, 2014 10:39PM
> sometimes it is quick (depending on different PositionCode)
DISTINCT slows things down; do you need it?
A PositionCode with a lot of rows will take longer.
SHOW CREATE TABLE -- for each table. We need to see the datatypes and indexes.
gameposition needs a "compound" index:
INDEX(PositionCode, GameNumber)
games _may_ benefit from
INDEX(GameNumber, Yr)
Subject
Views
Written By
Posted
2179
April 13, 2014 03:06AM
Re: MySQL MyISAM sorting query makes it slower
909
April 13, 2014 10:39PM
943
April 14, 2014 02:10AM
1251
April 14, 2014 12:23PM
1026
April 14, 2014 04:13PM
832
April 14, 2014 07:01PM
933
April 15, 2014 01:00PM
866
April 16, 2014 12:26PM
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.