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: Why is using Select in IN() clause much slower than using values?

Re: Why is using Select in IN() clause much slower than using values?

From: Martin T. <bilbothebagginsbab5_at_freenet.de>
Date: 9 Aug 2006 13:19:56 -0700
Message-ID: <1155154796.831404.9140@n13g2000cwa.googlegroups.com>


cliffliang_at_gmail.com wrote:
> > Well, that seems to be quite a view.
> Yes, the joys of working with vendor supplied code and not knowing how
> far to hack around it before going into "unsupported" territory.
>
> > If the list is going to be static, you may
> > be better off with literals.
> This is what I'll go with. The plan on it has the nested loops cut out.
>

I just thought ... if the query with literal list is really 3 times faster and you need some flexibility for the IN list, building the query dynamically with the literal and then executing it might be a solution ... ?

best,
Martin Received on Wed Aug 09 2006 - 15:19:56 CDT

Original text of this message

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