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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Query tuning

Re: Query tuning

From: Bruno D. <bd_avirer__at_arte-tv.com>
Date: Wed, 23 Oct 2002 11:27:47 +0200
Message-ID: <3db66b7f$0$210$4d4eb98e@read.news.fr.uu.net>


Ok guys, thx for your answers, but I know that like '%AAA%' is very expensive, but I don't think that's the problem because the subquery executed alone is near instant:

What about this real examples:

 select ep.no_emiarte, e.titre_o_prg
 from entete_prog ep, entete e, remontage r  where ep.no_emiarte=e.no_emiarte

 and ep.no_emiarte=r.no_emiarte
 and ep.remontage=r.remontage
 and ep.no_emiarte in ('002255-000'); ---------------------> 200 ms

  select ep.no_emiarte, e.titre_o_prg
 from entete_prog ep, entete e, remontage r  where ep.no_emiarte=e.no_emiarte

 and ep.no_emiarte=r.no_emiarte
 and ep.remontage=r.remontage
 and ep.no_emiarte in (select '002255-000' from dual); -----> 13 seconds

!!!!!!!

In the second case, the 'explain plan' shows that oracle uses index no more
!!!
Received on Wed Oct 23 2002 - 04:27:47 CDT

Original text of this message

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