Pattern: Use of orderby => rand
Issue: -
MySQL queries that use ORDER BY RAND()
can be pretty challenging and slow on large datasets. An alternate option can be to retrieve 100 posts and pick one at random.
Pattern: Use of orderby => rand
Issue: -
MySQL queries that use ORDER BY RAND()
can be pretty challenging and slow on large datasets. An alternate option can be to retrieve 100 posts and pick one at random.