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 -> Re: Tuning question: functions vs.self joins

Re: Tuning question: functions vs.self joins

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Sat, 15 Aug 1998 16:53:37 +0200
Message-ID: <35D5A0EF.BEC9024F@sybrandb.demon.nl>


Hi Sunita,

Don't use functions with selects to replace joins. Experience dictates function are treated as recursive sql, so as a separate pass, and will be optimised separately. In my previous job, in an application I didn't develop, the results proved to be disastrous. Full table scans all over the place!
Self joins should be efficient enough as long as there is proper indexing of this tables.
Or maybe you could post an example

Hth
Sybrand Bakker, Oracle DBA

sunita_at_postoffice.worldnet.att.net wrote:

> The application I am working on has many big queries
> with self joins to a table with 9000 rows.
>
> ARe the queries supposed to work faster if the self joins
> are replaced with functions?
>
> I wrote teh functions and changed teh queries and found that
> performanc eimprovement was NIL.
>
> What is your opinion? IS there a better way to
> improve the performance of queies with self joins.
>
> --
> SUnita
Received on Sat Aug 15 1998 - 09:53:37 CDT

Original text of this message

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