| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера