At 12:54 PM 5/13/05, Brian Dunning wrote:

I have a db of about 300,000 records and when I try to find one
random record like this:

select * from table order by rand() limit 1;

it can take several minutes. My Sherlock Holmes instincts tell me
that what I'm doing is somehow inefficient. What is the primary
culprit here?


Sherlock Holmes would have checked the archives first! There was a discussion about this a couple of weeks ago - Apr.26


-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to