Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Does Ref. Integrity help CBO ?
klabu wrote:
> 10gR2
>
> Does Ref. Integrity help CBO ?
> or maybe my Q should be: Does Statistics take RI into consideration ?
>
> So if say joining n tables....
> Does the fact that these tables have RI amongst them "help" CBO do a
> "better" job
> than if they just have PKs defined ?
>
>
> thanks, hope i'm making sense, I tried ;)
>
>
I don't know for sure, but my inclination is that a FK constraint by itself does not help the CBO. However, indexing the FK columns *may* help the join performance. If that is the case, it is the index and not the FK constraint that is providing benefit.
HTH,
Brian
-- =================================================================== Brian Peasland dba_at_nospam.peasland.net http://www.peasland.net Remove the "nospam." from the email address to email me. "I can give it to you cheap, quick, and good. Now pick two out of the three" - UnknownReceived on Wed Oct 25 2006 - 14:06:48 CDT
![]() |
![]() |