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

Home -> Community -> Usenet -> c.d.o.server -> Re: Tuning question - low cpu_time, high elapsed_time - what gives?

Re: Tuning question - low cpu_time, high elapsed_time - what gives?

From: Jan <janik_at_pobox.sk>
Date: 12 Oct 2004 01:14:06 -0700
Message-ID: <81511301.0410120014.37e8c525@posting.google.com>


you should rewrite some part of the query (tunning method in this case = application design) to decrease unnecessary IO:

1.)

what is the purpose of join with DUAL in

  AND fact.LotId IN(SELECT l.LotId

                     FROM dual fact  -- ???
                        , Lot l
                    WHERE l.DeviceId = 6552
                      AND l.TechnologyId = 3845)

Note that you should not do an extra joins if you want to reduce IO

2.) in one part of the WHERE you are asking for:

    AND et.ExposureToolModelId = etm.ExposureToolModelId(+)

   but in the next part you are filtering it out:

   AND etm.ExposureToolType = 'scanner'

   This means you are removing also data which you got by previous OUTER JOIN You have more such mistakes (point 2.) then fix these first.

Jan Received on Tue Oct 12 2004 - 03:14:06 CDT

Original text of this message

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