RE: Rand slowness.

2002-06-27 Thread Jon Frisby
L List [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 27, 2002 2:44 PM > To: Jon Frisby > Cc: mysql > Subject: Re: Rand slowness. > > > I tried this, but it seems to be ignoring the LIMIT 3, since it > is returning > all the rows. > > > > Try: > >

Re: Rand slowness.

2002-06-27 Thread MySQL List
I tried this, but it seems to be ignoring the LIMIT 3, since it is returning all the rows. > Try: > SELECT RAND() AS r, * FROM table ORDER BY r LIMIT 3; > > Off the top of my head, I'd guess that the reason for the slowdown has to do > with MySQL doing a new RAND() call for every comparison in t