MySQL Forums
Forum List  »  InnoDB

Re: Creating sort index killing performance after converting from MyISAM
Posted by: Rick James
Date: August 06, 2013 09:14PM

> KEY `postid` (`postid`),
> KEY `postid_2` (`postid`),

Those are redundant; you don't need both.

Your SELECT will run faster if you replace both of them with the compound key:

INDEX(postid, date);

Don't be too hasty in switching back away from InnoDB. Let's see
SHOW VARIABLES LIKE 'innodb%';
SHOW VARIABLES LIKE 'sync%';

> Creating sort index
I suspect that is a new feature of 5.6, but being misused here.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Creating sort index killing performance after converting from MyISAM
6250
August 06, 2013 09:14PM


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.