| От | Tom Lane |
|---|---|
| Тема | Re: Slow delete with with cascading foreign keys |
| Дата | |
| Msg-id | 5878.1224543724@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Slow delete with with cascading foreign keys (Matthias Karlsson <matthias@yacc.se>) |
| Список | pgsql-general |
Matthias Karlsson <matthias@yacc.se> writes:
> Tom Lane skrev:
>> If it's a reasonably modern PG version, EXPLAIN ANALYZE will break out
>> the time spent in each on-delete trigger, which should be enough to
>> answer the question.
> Thanks, that gave me something to work with. I targeted the triggers that had the most "uses", but it did not seem to
> help that much. I managed to reduce execution time with maybe 10-15%, but I'll try to apply indices more aggressively
to
> see if it helps.
Hm, you still didn't mention which PG version you're using --- but if
it's pre-8.3, keep in mind that you need to start a fresh session to
get the plans for FK triggers to change.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера