Re: Indexing foreign keys

Поиск
Список
Период
Сортировка
От Matt Mello
Тема Re: Indexing foreign keys
Дата
Msg-id 3E359D06.5020408@spaceship.com
обсуждение исходный текст
Ответ на Indexing foreign keys  (Matt Mello <alien@spaceship.com>)
Ответы Re: Indexing foreign keys
Список pgsql-performance
Yes, I had not only done a "vacuum full analyze" on the PG db once I
stuffed it, but I also compared that with an IFX db that I had run
"update statistics high" on.  Things are much better with the FK indexes.

Did the docs say to index those FK fields (is that standard in the DB
industry?), or was I just spoiled by IFX doing it for me?  ;)

Thanks!



Chad Thompson wrote:
> Make sure that you've run a vacuum and an analyze.  There is also a
> performance hit if the types of the fields or values are different. ie int
> to int8

--
Matt Mello



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

Предыдущее
От: Matt Mello
Дата:
Сообщение: Indexing foreign keys
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: 7.3.1 New install, large queries are slow