| От | Andres Freund |
|---|---|
| Тема | Re: Deferred constraint and delete performance |
| Дата | |
| Msg-id | 201002101836.25964.andres@anarazel.de обсуждение |
| Ответ на | Re: Deferred constraint and delete performance (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-performance |
On Wednesday 10 February 2010 15:56:40 Tom Lane wrote: > Franck Routier <franck.routier@axege.com> writes: > > I am wondering if deferring foreign key constraints (instead of > > disableing them) would increase performance, compared to non deferred > > constraints > > No, it wouldn't make any noticeable difference AFAICS. It would > postpone the work from end-of-statement to end-of-transaction, > but not make the work happen any more (or less) efficiently. It could make a difference if the transaction is rather long and updates the same row repeatedly because of better cache usage. But I admit thats a bit of a constructed scenario (where one likely would get into trigger-queue size problems as well) Andres
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера