Dejan Levec

April, 2010

Not so random thoughts about random

For one of my websites, I needed solution for randomly displaying different rows from MySQL database. As probably everyone knows, the easiest solution is to use following SQL: select * from table order by rand() There are no problems with using that, except one: It’s REALLY SLOW. This might not be a problem with table […]