Skip to content
RED SAGSkills
easy5 pts · first answer countsindexing

ORDER BY random()

A "show 5 random products" feature uses SELECT * FROM products ORDER BY random() LIMIT 5 on 20 lakh rows. Why is it slow?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions