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: Does Oracle create temporary indexes for sub queries?

Re: Does Oracle create temporary indexes for sub queries?

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 09 Dec 2005 09:11:27 -0800
Message-ID: <1134148286.578757@jetspin.drizzle.com>


dean wrote:
> What I mean is, suppose I join two subqueries A and B together
> inner-joined on fields A.F1 = B.F1 and A.F2 = B.F2.
>
> If A or B are not straight-up tables with indexes, but they are
> subqueries for which no index exists, is there any cost advantage to
> performing an order-by clause on the select statements at the end of A
> and B? I guess I am assuming that if I do the order-by, then there will
> be a temp index avaiable, if I do order-by A.F1, A.F2 or B.F1, B.F2.
>
> There - clear as mud!
>
> Dean

There is value in testing.

There is no value in getting an answer to a question such as yours and then applying it case-after-case and assuming it holds.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Fri Dec 09 2005 - 11:11:27 CST

Original text of this message

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