MySQL Forums
Forum List  »  InnoDB

InnoDb Select Performance
Posted by: Luis Cavazos
Date: December 30, 2014 01:36PM

Hi All,
I have a Table with over 2.5 millions of records,

when I do a select * limit 10 records it returns the data quikly,
ie: select * from mkpcte limit 1000 ; will respond in about 0.075 Sec.


if I do a Select using order by Will take 4.5 seconds just to return 2 records
ie: select * from mkpcte order by idreg desc , idano desc limit 2 ; will respond in about 4.175 Sec.

The primary key is idreg , idano, Also I have a Unique Index ( idano desc , idreg desc ) to match the order by.

the Explain says only tye SIMPLE, no PK no Index, and Using File sort


Running Mysql 5.6 64bit on 8 Core Server mem_pool_size 5gb.


Any Idea/Sugesstion.

Options: ReplyQuote


Subject
Views
Written By
Posted
InnoDb Select Performance
1904
December 30, 2014 01:36PM
1009
December 31, 2014 11:41AM
1219
January 02, 2015 10:26AM


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.