I have 3.2 million rows with a few keys to help speed up the sorting. However, as my table grows, things are getting slow and slower each day. Can you guys please take a look at my query and let me know if there are any other solutions I can have to make this process quicker better?
SELECT * FROM (SELECT `numbers` FROM `avotf`.`master` WHERE `active`=1 order by `monthly_mins`,`called`,`added`,rand() limit 200) AS T1 ORDER BY RAND() LIMIT 1