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 -> Execution plan Question

Execution plan Question

From: Ullrich Hertlein <heul0011_at_rz03.FH-Karlsruhe.DE>
Date: 20 Aug 1998 13:52:34 GMT
Message-ID: <6rh9n2$grv$1@nz12.rz.uni-karlsruhe.de>


hi !

i have made 2 execution plans for equivalent queries, and my problem is, which one to use.
here are the reduced plans:

no 1 is:
selct stmt

   filter cost 1

      table access tab2 FULL cost 1
      table access tab1 FULL cost 2

no 2 is:
select stmt

   nested loops cost 1

      table access full tab1 cost 1
      table access by rowid tab2 cost 2
          index range scan tab2_pk cost 1

of course the first approach is to say that 2 full scans are much slower , but the filter operation is much more cheaper (linear i think) then the nested loop in the 2nd plan.

table tab1 has max. 20-30 records, tab2 about 2000 - 4000 records.

anybody ... ?

thanks a lot !

bye, ulli


Received on Thu Aug 20 1998 - 08:52:34 CDT

Original text of this message

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