Foreign key / performance question
От | Nico Callewaert |
---|---|
Тема | Foreign key / performance question |
Дата | |
Msg-id | 20060329173547.61131.qmail@web32605.mail.mud.yahoo.com обсуждение исходный текст |
Ответы |
Re: Foreign key / performance question
Re: Foreign key / performance question Re: Foreign key / performance question |
Список | pgsql-general |
Hi !,
Is it wise to define foreign keys for referential entegrity ?
Example : I have a customer table with 40 fields. Out of that 40 fields, 10 fields contain information linked to other tables. So, is defining foreign keys for these 10 fields a good idea ? Because from what I understand, for every foreign key, there is an index defined. So, all these indexes has to be maintained. Is that killing performance ? What's the best practise : defining foreign keys or not ?
Thanks a lot,
Nico Callewaert
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
В списке pgsql-general по дате отправления: