Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Parse Vs Execute
Don't do this:
Loop Parse Execute Fetch End loop
Do this:
Parse Loop Execute Fetch End loop
If you parse inside your loop, then all that using bind variables will gain you is a reduced "hard parse" count. If you parse outside the loop (in which case, you MUST use bind variables), then you reduce your number of parse calls. A "soft parse" is a little cheaper than a "hard parse." NO PARSE is a lot cheaper than a "soft parse."
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Upcoming events:
- Performance Diagnosis 101: 12/16 Detroit, 1/27 Atlanta
-----Original Message-----
jaysingh1_at_optonline.net
Sent: Wednesday, November 26, 2003 12:14 PM
To: Multiple recipients of list ORACLE-L
Hi List,
Almost fro all SQLs I am getting Prase count is same as Execute count. How to reduce parse count?
call count cpu elapsed disk query current rows
Any somebody give more hint on this?
Thanks
Jay
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: INET: jaysingh1_at_optonline.net Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- 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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Cary Millsap INET: cary.millsap_at_hotsos.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- 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 Wed Nov 26 2003 - 13:39:39 CST