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  (Vivek Khera <vivek@khera.org>)
Re: Foreign key / performance question  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: Foreign key / performance question  (Scott Marlowe <smarlowe@g2switchworks.com>)
Список 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 по дате отправления:

Предыдущее
От: Steve Atkins
Дата:
Сообщение: Re: Implementation Suggestions
Следующее
От: "Reimer"
Дата:
Сообщение: Comparing 7.4 with 8.0