Re: How to speed up delete

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to speed up delete
Дата
Msg-id 7517.1120744945@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to speed up delete  (Bendik Rognlien Johansen <bendik.johansen@gmail.com>)
Ответы Re: How to speed up delete  (Bendik Rognlien Johansen <bendik.johansen@gmail.com>)
Список pgsql-performance
Bendik Rognlien Johansen <bendik.johansen@gmail.com> writes:
> I am running few of these deletes (could become many more) inside a
> transaction and each one takes allmost a second to complete.
> Is it because of the foreign key constraint, or is it something else?

You need an index on "original" to support that FK efficiently.  Check
for references from other tables to this one, too.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CURSOR slowes down a WHERE clause 100 times?
Следующее
От: "Steinar H. Gunderson"
Дата:
Сообщение: Re: Surprizing performances for Postgres on Centrino