MySQL Forums
Forum List  »  Performance

Re: Is ORDER BY RAND() LIMIT 1 optimized?
Posted by: Rick James
Date: June 06, 2015 12:16PM

Here's 8 techniques to "optimize" picking a random number. None is perfect, and each may or may not be applicable in your case.

http://mysql.rjweb.org/doc.php/random

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Is ORDER BY RAND() LIMIT 1 optimized?
1273
June 06, 2015 12:16PM


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.