On 2/21/08, Lee Munroe <[EMAIL PROTECTED]> wrote:
>    @records = Record.find_all_by_active(true, :order => 'rand()',
> :limit => 50)

you might want to double check, but I recall something about the
rand() function of mySQL being a slow pig. What is the performance
like without the rand()

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to