MySQL Forums :: Performance :: order by primary key slowly


Advanced Search

Re: order by primary key slowly
Posted by: varky chan ()
Date: April 07, 2016 12:34AM

Yes, i know that it is slow down when m > 1M with limit m,n. But my question is, why 'select ID from user order by ID limit m,n' slower than 'select ID from user limit m,n' so much. Because id is primary key, it should take the same time.

Options: ReplyQuote


Subject Views Written By Posted
order by primary key slowly 892 varky chan 04/05/2016 10:42PM
Re: order by primary key slowly 398 Øystein Grøvlen 04/06/2016 04:35AM
Re: order by primary key slowly 438 varky chan 04/06/2016 10:15AM
Re: order by primary key slowly 411 Peter Brawley 04/06/2016 11:23AM
Re: order by primary key slowly 483 varky chan 04/06/2016 08:11PM
Re: order by primary key slowly 377 Peter Brawley 04/06/2016 10:35PM
Re: order by primary key slowly 387 varky chan 04/07/2016 12:34AM
Re: order by primary key slowly 422 Øystein Grøvlen 04/07/2016 07:21AM
Re: order by primary key slowly 407 Peter Brawley 04/07/2016 10:20AM
Re: order by primary key slowly 387 varky chan 04/07/2016 11:26PM
Re: order by primary key slowly 370 Rick James 04/12/2016 07:42PM
Re: order by primary key slowly 389 Peter Brawley 04/06/2016 08:57AM
Re: order by primary key slowly 381 varky chan 04/06/2016 10:17AM


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.