MySQL Forums
Forum List  »  Optimizer & Parser

Re: long time processing long query
Posted by: Rick James
Date: August 31, 2008 11:44PM

ORDER BY rand() is not well optimized by MySQL. It involves a full table scan. This is probably where the inefficiency comes from.

Search the web for tricks to use in selecting a few rows at random.

Options: ReplyQuote


Subject
Views
Written By
Posted
6261
May 22, 2008 12:52PM
2647
May 25, 2008 08:09AM
Re: long time processing long query
2363
August 31, 2008 11:44PM


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.