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: Is it possible to link two big tables which are joined together frequently?

Re: Is it possible to link two big tables which are joined together frequently?

From: Karl E. Jørgensen <kjorg_at_msn.com>
Date: 1998/01/04
Message-ID: <uAvxVIXG9GA.103@upnetnews03>#1/1

If you can afford the overhead in terms of disk space, you may consider using a Snapsnot. Of course, you'll still have to put adequate indexes on the snapshot and be careful when you refresh it.

--
Karl
Oracle Certified DBA

Nighr wrote in message <19980102223701.RAA21024_at_ladder02.news.aol.com>...

>In article <6777t9$ii4$0_at_204.179.92.82>, dshi_at_magpage.com (David Shi)
writes:
>
>>
>Suppose you have two very large tables which you joined together
>frequently,
>>the contents in the two tables do not change. Instead of
sort and merge the
>>two table every time to join the two, is it
possible to have certain kind of
>>link which once setup the first time,
can be used each time later for the
>>table join?
>
>I know cluster can help for such situations but I would like to
>>avoid
>it.
>
>If the above is impossible, then if the key columns used to join
>>in
>the two tables are sorted, will Oracle aware that and directly merge
>the
>>two when joining the two (thus skip the expensive sorting part)?
>
>You may want to look into foreign keys and views. The foreign key
constraint
>will enforce the relationship between the tables and build the index you
need.
>If you use a view to access the data from both of the tables, the join will
be
>done the same way every time. The other advantage of the view is that if
you
>still think that you're not getting the performance you want, just modify
the
>view--not your application code. Since you're keeping the data in separate
>segments, versus combining them into a cluster, you can still access either
>table fairly efficiently. The only clusters I have on my system is within
the
>SYSTEM table space--not in my applications!
>
>--Bob.
>
>
begin 666 Karl E. Jørgensen.vcf M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DKX<F=E;G-E;CM+87)L.T4N M#0I&3CI+87)L($4N($KX<F=E;G-E;@T*3D]413I396YI;W(@4WES=&5M<R!% M;F=I;F5E<@T*55),.@T*55),.FAT=' Z+R]S97%U96PM:6UA9V4N8V]M#0I% M34%)3#M04D5&.TE.5$523D54.FMJ;W)G0&US;BYC;VT-"E)%5CHQ.3DX,#$P 6-%0R,34T-#A:#0I%3D0Z5D-!4D0-"@`` ` end end
Received on Sun Jan 04 1998 - 00:00:00 CST

Original text of this message

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