| От | Jan Wieck |
|---|---|
| Тема | Re: make a unique index for foreign keys? |
| Дата | |
| Msg-id | 3D08CF8A.D945FC18@Yahoo.com обсуждение |
| Ответ на | Re: make a unique index for foreign keys? ("Beth Gatewood" <beth@vizxlabs.com>) |
| Список | pgsql-sql |
Beth Gatewood wrote: > > Chris/ Josh- > > OK-response to Chris below. Synopsis here....simply by creating a foreign > key will not create an index. On large tables I SHOULD put a non-unique > index on the foreign key (right?) Right, because on DELETE or UPDATE to the primary key, the RI triggers have to check that this doesn't leave orphaned references or do the required referential action (CASCADE). Sometimes this works faster with an index... Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера