MySQL Forums
Forum List  »  Performance

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)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL MyISAM sorting query makes it slower
909
April 13, 2014 10:39PM


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.