Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: FIRST_ROWS vs. ALL_ROWS
Hello again,
I want to thank everyone for responding to my query. I have a much better understanding of how this works now. I changed my query to remove the "rownum < 5" and the query returned 344066 rows. The output of the tkprof is below:
FIRST_ROWS
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
ALL_ROWS
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
It still seems like it takes much longer in the ALL_ROWS case, but the value in the query column is much less; however, the values in the disk and current columns are much bigger. When I actually ran it and put the output into a file, the FIRST_ROWS case took 1:17 minutes and the ALL_ROWS case took 8:53 minutes.
Bill Carle
AT&T
Database Administrator
816-995-3922
wcarle_at_att.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Carle, William T (Bill), NLCIO
INET: wcarle_at_att.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Dec 03 2001 - 15:37:01 CST