Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Trace Evaluation
Hi Vivek,
Yes. Select into expects one record (and your index is unique), so you can do this: Try adding AND ROWNUM < 2 to the query and it will quit after it finds the record it is looking for. Please post your results, I'm curious how big of a difference this makes.
HTH
Lisa Koivu
Petite Clumsy Ninja-ette
Ft. Lauderdale, FL, USA
-----Original Message-----
From: VIVEK_SHARMA [SMTP:VIVEK_SHARMA_at_infy.com] Sent: Monday, June 25, 2001 8:45 AM To: Multiple recipients of list ORACLE-LSubject: Trace Evaluation
Is there Any Scope for Improvement in the Following ?
select acct_crncy_code into :b0
from
GAM where acid=:b1
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 20 (TBAGEN)
Rows Execution Plan ------- ---------------------------------------------------0 TABLE ACCESS (BY INDEX ROWID) OF 'GENERAL_ACCT_MAST_TABLE'
0 SELECT STATEMENT GOAL: CHOOSE
NOTE - IDX_GENERAL_ACCT_MAST_TABLE is Defined on Field ACID of GAM Table
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: VIVEK_SHARMA INET: VIVEK_SHARMA_at_infy.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 Jun 25 2001 - 08:48:30 CDT
![]() |
![]() |