Optimizing my mysql statement! - RAND() TOO SLOW

后端 未结 6 758
孤独总比滥情好
孤独总比滥情好 2020-12-11 03:26

So I have a table with over 80,000 records, this one is called system. I also have another table called follows.

I need my statement to randomly select records from

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 03:59

    I am not sure there is a simple solution to replace your query, here is an article on correcting this type of issue.

    http://www.titov.net/2005/09/21/do-not-use-order-by-rand-or-how-to-get-random-rows-from-table/

提交回复
热议问题