Re: ORDER BY RAND() taking too much time
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
Subject
Views
Written By
Posted
10733
April 29, 2006 05:30AM
4021
May 01, 2006 08:49AM
4344
May 02, 2006 08:44AM
3776
May 02, 2006 02:24PM
3322
May 03, 2006 01:51AM
3165
May 03, 2006 02:11AM
3641
August 15, 2006 05:13PM
2834
May 11, 2006 04:25AM
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.