Subject | Re: [firebird-support] Was poor selectivity in foreign keys |
---|---|
Author | German Pablo Gentile |
Post date | 2004-10-17T13:37:49Z |
Helen Borrie wrote:
performance?
app level so only allow insert via lookups to foreign tables.
In the beforedelete can happen that trouble?
TIA
german.
> Sorry, I don't understand what you are saying here. Custom RI is theWhat i mind is, why i need that index in custom RI. For a better
>
>*alternative* to creating a foreign key, i.e. declarative RI, in situations
>where the effect of declarative RI is worse than the risk of a RI
>violation. You would not have both a FOREIGN KEY constraint *and* custom
>RI on this relationship.
>
>
>
performance?
>If you need to apply custom RI triggers, be mindful of the possibleI only need the beforedelete check. The existence check will be done at
>outcomes if you use transaction configurations that are at the "dirty" end
>of the scale. ReadCommitted isolation, when carelessly used, allows the
>possibility of phantom rows and undesirable overwriting. Declarative RI
>-the FOREIGN KEY constraint - provides better protection than custom RI
>triggers against the integrity breakages inherent in such conditions.
>
>
>
app level so only allow insert via lookups to foreign tables.
In the beforedelete can happen that trouble?
TIA
german.