I am trying to create a Flexible Search that retrieves 10,000 random rows out of 3M. Tried with different syntax like LIMIT, but i cannot make it work, I need to add this query to a Groovy Script. Thought about creating a random number and retrieve 10k from all the rows, but performance will be heavy.
Any suggestions?
Query Example:
SELECT {pk} FROM {Order as O} "Condition to get random registries from it".
Thank you!!