I've got a jquery roller/scroller that displays snippets of records returned from my 'Helpful Hints' database table query. I want to keep the scroller to about 15 records but not always the first 15 records.
Is it more efficient to write a query like:
SELECT *
FROM table
ORDER BY RAND()
LIMIT n
Which returns a random result or do I return the whole query and have my ColdFusion component serve up a random number of the query result?
The future of my scroller will include random records from my 'Items for Sale' table as well, so I need to keep that in mind.