Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Index usage in order by clause
Dear All,
I have a question about index column in order by clause. The below query is taking 3 min to get the result but the sametime if I comment out ORDER BY clause it is taking only 3 secs.
Is it possible to improve the performance by creating an index on table2.lastupdatedate column
SELECT * FROM (
SELECT /*+ FIRST_ROWS */ p.processed_by, p.last_name, p.first_name, p.company_name, p.userid