4 ms·
SELECT * FROM table ORDER BY RAND() LIMIT 10 ?
by broshnat 14y ago
SELECT * FROM table ORDER BY RAND() LIMIT 10 ?
- eurleif 14y agoTry running EXPLAIN on that query. It has to create a temporary table, add a random column for every row, and then sort on that column. Not very fast.