Re: constraints and performance

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: constraints and performance
Дата
Msg-id Pine.LNX.4.33.0402110859280.32376-100000@css120.ihs.com
обсуждение исходный текст
Ответ на constraints and performance  (Jodi Kanter <jkanter@virginia.edu>)
Список pgsql-admin
On Wed, 11 Feb 2004, Jodi Kanter wrote:

> Do constraints effect performance significantly?

That depends.

Foreign key constraints on int4 columns or int8 columns (matching of
course) are usually quite fast.

FK constraints on non-int (numeric, text, etc...) tend to be slower.

check constraints can be a killer if they are complex or use functions,
but simple check constraints are usually alright.

Do you have a specific use case you're looking at?


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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: hanging for 30sec when checkpointing
Следующее
От: Tom Lane
Дата:
Сообщение: Re: IDE and write cache