Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Trace Evaluation

RE: Trace Evaluation

From: Koivu, Lisa <lisa.koivu_at_efairfield.com>
Date: Mon, 25 Jun 2001 06:48:30 -0700
Message-ID: <F001.00336489.20010625061546@fatcity.com>

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-L
Subject:        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
------- ------  -------- ---------- ---------- ---------- ----------



Parse        1      0.00       0.00          0          0          0 0
Execute  73710      3.49       4.60          0          0          0 0
Fetch    73710      4.93       4.82          0     294840          0 73710
------- ------  -------- ---------- ---------- ---------- ----------

total   147421      8.42       9.42          0     294840          0 73710

Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 20  (TBAGEN)

Rows     Execution Plan
-------  ---------------------------------------------------

      0  SELECT STATEMENT   GOAL: CHOOSE
      0   TABLE ACCESS (BY INDEX ROWID) OF 'GENERAL_ACCT_MAST_TABLE'
      0    INDEX (UNIQUE SCAN) OF 'IDX_GENERAL_ACCT_MAST_TABLE' (UNIQUE)


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US