What is a fast way to select a random row from a large mysql table?
I\'m working in php, but I\'m interested in any solution even if it\'s in another language.
In pseudo code:
sql "select id from table" store result in list n = random(size of list) sql "select * from table where id=" + list[n]
This assumes that id is a unique (primary) key.
id