Re: Strategy needed for picking random rows
Hi Joachim,
What is the purpose of the join? It seems to give the same rows as the inner query.
How random does the result need to be? One idea is to use a prepared statement with "LIMIT ?, 200", and compute a random number for the parameter on each execution. Will not give random order, but the set of records should be different.
(I have not tried this, so no guarantees about performance.)
Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway
Subject
Views
Written By
Posted
3578
September 07, 2011 11:27AM
Re: Strategy needed for picking random rows
1485
September 08, 2011 01:08AM
1256
September 08, 2011 01:17AM
1240
September 08, 2011 07:51AM
1326
September 08, 2011 08:05AM
1272
September 09, 2011 08:51AM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.