I have a query that consists of joins and has a yield of about 30,000 + records. I would like to get 10 random rows from these records without using the SQL ORDER BY rand () command.
I tried to scroll through the records and put them into an array and mix (get the 1st 10 after shuffling), but it takes about 8-12 seconds to generate. I would like to reduce this processing time at all costs.
How can i do this?
source share