Re: on delete cascade slowing down delete

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: on delete cascade slowing down delete
Дата
Msg-id 200808211016.21203@hal.medialogik.com
обсуждение исходный текст
Ответ на on delete cascade slowing down delete  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Ответы Re: on delete cascade slowing down delete  (Joshua Drake <jd@commandprompt.com>)
Список pgsql-general
On Thursday 21 August 2008, Ivan Sergio Borgonovo <mail@webthatworks.it>
wrote:
> I've a large table with a pk and several smaller tables with fk
> referencing to it.
>
> deleting from the first table is very slow.
>
> Not all the related fk have indexes but they are VERY small (0 to
> 100 records) while the main table contain 600-800K records.
>
> the
> explain delete p;
> doesn't give any clue.
>
> Any hint to track down the problem?

1) Define slow.

2) Tell us what your disk subsystem consists of.

3) Are there any delete triggers on the tables?

--
Alan

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

Предыдущее
От: Mark Roberts
Дата:
Сообщение: Re: What's size of your PostgreSQL Database?
Следующее
От: Joshua Drake
Дата:
Сообщение: Re: on delete cascade slowing down delete