我有一个查询
select * from
(select a.*, /*+ FIRST_ROWS(10) */ rownum rnum
from (SELECT AL.AL_UID, AL.TP_ID, AL.EVENTDATE, TP.NAME, AL.EVENT, AL.FILE_NAME,
AL.NOTES, AL.XU_NAME, AL.STATUS, AL.LOG_SOURCE, rownum
FROM AUDITLOG AL,
TRADINGPARTNER TP
WHERE ( AL.LOG_SOURCE = 'File Deployment' ) AND TP.ID = AL.TP_ID
ORDER BY AL.EVENTDATE desc, AL.AL_UID desc
) a
where rownum < 101
)
where rnum > 0;
获取结果大约需要一分钟。请让我知道如何优化它以减少获取时间。我可以在这里使用连接吗?