| От | PFC |
|---|---|
| Тема | Re: How to speed up delete |
| Дата | |
| Msg-id | op.stjniqzbth1vuj@localhost обсуждение исходный текст |
| Ответ на | How to speed up delete (Bendik Rognlien Johansen <bendik.johansen@gmail.com>) |
| Список | pgsql-performance |
On Thu, 07 Jul 2005 13:16:30 +0200, Bendik Rognlien Johansen
<bendik.johansen@gmail.com> wrote:
> Hello,
> I was wondering if there is any way to speed up deletes on this table
> (see details below)?
> 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?
>
> Thanks!
Check your references : on delete, pg needs to find which rows to
cascade-delete, or set null, or restrict, in the tables which reference
this one. Also if this table references another I think it will lookup it
too. Do you have indexes for all this ?
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера