| От | Tom Lane |
|---|---|
| Тема | Re: slow deletes on pgsql 7.4 |
| Дата | |
| Msg-id | 9147.1146006558@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | slow deletes on pgsql 7.4 ("Junaili Lie" <junaili@gmail.com>) |
| Ответы |
Re: slow deletes on pgsql 7.4
|
| Список | pgsql-performance |
"Junaili Lie" <junaili@gmail.com> writes:
> we encounter issues when deleting from a table based on id (primary key). O=
> n
> certain 'id', it took forever to delete and the i/o is 100% busy.
Almost always, if delete is slow when selecting the same rows is fast,
it's because you've got a trigger performance problem --- most commonly,
there are foreign keys referencing this table from other tables and you
don't have the referencing columns indexed.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера