Re: Native Foreign Keys housekeeping time intensive for Relational Model

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Native Foreign Keys housekeeping time intensive for Relational Model
Дата
Msg-id 2002503.1616856201@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Native Foreign Keys housekeeping time intensive for Relational Model  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Native Foreign Keys housekeeping time intensive for Relational Model  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-admin
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> On Fri, 2021-03-26 at 14:00 -0400, Jacque Edmund wrote:
>> I've already seen that my current set of FK relationships between < 100 tables and data footprint
>> has yielded very large lookup times for the underlying referential integrity of the FKs to vet
>> whether it can DELETE a row or not based on its FK relationships.

> I would be surprised if correctly indexed foreign keys would slow deletes down so that
> the performance becomes intolerable.

Deletes being slow often means that you don't have an index on the
referencing column(s).  PG requires you to have an index on the referenced
columns, but not on the other side of the FK relationship.

            regards, tom lane



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

Предыдущее
От: Mukesh Rajpurohit
Дата:
Сообщение: Re: Password encryption in oracle_fdw extention
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Native Foreign Keys housekeeping time intensive for Relational Model