MySQL Forums
Forum List  »  Optimizer & Parser

Re: ORDER BY RAND() taking too much time
Posted by: Erin ONeill
Date: June 08, 2006 10:38AM

Most folks will tell you to see this reference:
http://jan.kneschke.de/projects/mysql/order-by-rand/

But that only works on LMIT 1 and only works if you're not joining two tables. I'm researching how to optimize getting random rows without RAND(), joining two or more tables and with a limit of more than one.

I'll post my solution when I find it. This has certainly been a quest!

erin

Options: Reply• Quote


Subject
Views
Written By
Posted
10733
April 29, 2006 05:30AM
Re: ORDER BY RAND() taking too much time
4025
June 08, 2006 10:38AM


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.