Query tuning by using queues or cursors
Dear DBAs,
I have a query running around 4000 times an hour and it fetches 1 record from around 2 million records based on the search (status) criteria. This record/transaction is processed and then the status is changed. It should not appear in the next run of the query. I am planning to fetch 100 records(transaction) at once based on the search (status) criteria and these transactions are processed and status updated. This will avoid 99 executions of the original query. What is the best approach to achieve this? please suggest.
Environment: Oracle 11gr2 RAC database (11.2.0.3)
Best regards,
Azam
0