Re: Indexes advantageous on foreign key columns

Поиск
Список
Период
Сортировка
От Szymon Guz
Тема Re: Indexes advantageous on foreign key columns
Дата
Msg-id AANLkTilHC2NWDQLD6F_NzQH37JPIjbu9u2Cbnqg4Q2el@mail.gmail.com
обсуждение исходный текст
Ответ на Indexes advantageous on foreign key columns  ("Maria L. Wilson" <Maria.L.Wilson-1@nasa.gov>)
Список pgsql-admin
2010/5/26 Maria L. Wilson <Maria.L.Wilson-1@nasa.gov>
Was hoping that someone would like to discuss the need for indexes on columns that are referenced in a foreign key.  Are they necessary?  Are they worth the overhead?   PostgreSQL version 8.4


That depends. They are not necessary. They are overhead (like all other indexes). They can be useful, or not be useful. Can be used or not.
All depends mainly on your queries and how many records you have. If you have enough, the index can be really helpful (of course that depends on the query that you make).

regards
Szymon Guz 

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Maria L. Wilson"
Дата:
Сообщение: Indexes advantageous on foreign key columns
Следующее
От: Ray Stell
Дата:
Сообщение: command tag logging