18F / brutus

DEPRECATED - Doing heavy lifting in the land of government hiring.
Other
0 stars 4 forks source link

Query RANDOM() in Postgres #41

Open amoose opened 10 years ago

amoose commented 10 years ago

For compatibility with acts_as_taggable_on, we are using .sample instead of SQL to order by Random. Update .order_by to occur in SQL for performance.

dcwhiskey commented 10 years ago

Paying homage with a gchat away message ;)