Re: Really slow UPDATE and DELETE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Really slow UPDATE and DELETE
Дата
Msg-id 24755.996611866@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Really slow UPDATE and DELETE  (Nicholas Piper <nick@nickpiper.co.uk>)
Ответы Re: Really slow UPDATE and DELETE  (Nicholas Piper <nick@nickpiper.co.uk>)
Список pgsql-general
Nicholas Piper <nick@nickpiper.co.uk> writes:
> Inserts and selects on this table are really fast with indexes, and
> pretty fast without.
> The problem I'm having is that UPDATES and DELETEs are really, really
> slow.

I'm guessing that you have other tables that have foreign-key references
to this one.  The performance problem comes from searching those tables
to see if they have any keys that would become dangling references after
the update or delete.  You need to look at whether the queries used by
the FK triggers are properly indexed or not.

            regards, tom lane

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

Предыдущее
От: Joel Burton
Дата:
Сообщение: Re: Connecting Ultradev on Win2k to PostgreSQL on Red Hat Linux
Следующее
От: wsheldah@lexmark.com
Дата:
Сообщение: Re: Unexpected *ABORT STATE*