Re: poor performance when recreating constraints on large tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: poor performance when recreating constraints on large tables
Дата
Msg-id 12692.1307392671@sss.pgh.pa.us
обсуждение исходный текст
Ответ на poor performance when recreating constraints on large tables  (Mike Broers <mbroers@gmail.com>)
Ответы Re: poor performance when recreating constraints on large tables
Список pgsql-performance
Mike Broers <mbroers@gmail.com> writes:
> I am in the process of implementing cascade on delete constraints
> retroactively on rather large tables so I can cleanly remove deprecated
> data.  The problem is recreating some foreign key constraints on tables of
> 55 million rows+ was taking much longer than the maintenance window I had,
> and now I am looking for tricks to speed up the process, hopefully there is
> something obvious i am overlooking.

maintenance_work_mem?

            regards, tom lane

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

Предыдущее
От: Mike Broers
Дата:
Сообщение: poor performance when recreating constraints on large tables
Следующее
От: mark
Дата:
Сообщение: not exits slow compared to not in. (nested loops killing me)