I want to fetch randomly record from a mysql table. I know we can fetch using order by rand() but its seems to be slow process for large field. can we have some other way to fetch rand records.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could get a rand offset first by
Then select a record by using the offset.