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: Tuning

Re: Tuning

From: <ctcgag_at_hotmail.com>
Date: 11 Dec 2002 06:16:10 GMT
Message-ID: <20021211011610.461$9S@newsreader.com>


"O.C." <clubmitglied_at_yahoo.com> wrote:
> Hi !
> What is faster in embedded SQL (in PRO-C):
> 1. One join of 5 large tables or
> 2. Splitt the this big SQL into 3-4 parts (and use the output of one sql
> result
> as bind variables for the next sql statement)
>
> Indexes are in use.

If the CBO is working well, number 1 should almost always be as fast or faster. Otherwise, number 2 may be faster (by orders of magnitude). Use #1. If that causes major problems, then (get a DBA to) tune the query. If that fails (or you can't wait for an overworked DBA to get around to helping you), try #2.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Received on Wed Dec 11 2002 - 00:16:10 CST

Original text of this message

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