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
2422
April 13, 2014 03:06AM
Re: MySQL MyISAM sorting query makes it slower
1012
April 13, 2014 10:39PM
1070
April 14, 2014 02:10AM
1356
April 14, 2014 12:23PM
1127
April 14, 2014 04:13PM
920
April 14, 2014 07:01PM
1025
April 15, 2014 01:00PM
969
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.