Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Referential Integrity Enforcement: Do With Constraints or Triggers?
Sybrand Bakker wrote:
> On Fri, 26 Jul 2002 17:55:57 -0400, internetmaster <youlove_at_me.com> > wrote: > >
> > > > I have worked with several applications implementing the RI by means > of triggers. We tested and confirmed implementing RI by means of > constraints is about 8 times cheaper in terms of performance. > Constraints don't use explicit sql to check RI, they are using > internal mechanisms, triggers do use explicit sql. > Your observations are incorrect, and I doubt whether those 2 triggers > deal with all anomalies.
As far as I know, my observations are correct. When I run the following query for the application's schema, I don't find any referential constraints defined. Am I missing something?
select distinct constraint_type
from user_constraints
But thanks for the info on the cost difference. That's exactly what I was looking for. I rarely ever hear anyone talk about things like that.
> > Regards > > Sybrand Bakker, Senior Oracle DBA > > To reply remove -verwijderdit from my e-mail addressReceived on Fri Jul 26 2002 - 21:20:58 CDT
![]() |
![]() |