MySQL what’s the best way to select X random entries (rather than just one) – optimization for heavy use, i.e. on main page of a domain.
Supposedly just blindly using MySQL rand() is going to make this rather scary for large databases – please give me a better optimization answer than that!
the solution is use php
look at this article that choose the solution number 3 as faster
http://akinas.com/pages/en/blog/mysql_random_row/
Solution 3 [PHP]
the
Solution 4 [SQL] (Second in fast)