Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RI vs speed
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Titre:
Divers
Thread ID:
00712042
Message ID:
00712133
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
While it is true that SQL Server must do a physical lookup to verify that the value of the FK is in the parent table, you usually don't see any impact.

Use FK constraints if possible. They are checked before any work is done - meaning - before any data is actually changed.

-Mike

>Hello,
>
>We are in the process of setting up RI (mostly foreign keys, some sp's) on our SQL Server 2000 DBs. One of the questions that has come into play is how bad the performance hit will be once the RI has been put into place. We are using VFP 7 and C# for our front ends, BTW.
>
>I was just wondering if there was anyone out there who has seen any performance difference between an application with RI and one without. If so, how bad of a hit was it, and what type of RI did you use (FKs, SPs, triggers, etc...). If anyone has any advice on how to reduce the performance hit, that would be appreciated as well!
>
>Thanks!
>
>-Justin
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform