| От | Ivan Voras |
|---|---|
| Тема | Re: Optimizing DELETE |
| Дата | |
| Msg-id | 4510558E.7020205@fer.hr обсуждение исходный текст |
| Ответ на | Re: Optimizing DELETE (Rod Taylor <rbt@rbt.ca>) |
| Список | pgsql-performance |
Rod Taylor wrote: > On Tue, 2006-09-19 at 15:22 +0200, Ivan Voras wrote: >> I've just fired off a "DELETE FROM table" command (i.e. unfiltered >> DELETE) on a trivially small table but with many foreign key references >> (on similar-sized tables), and I'm waiting for it to finish. It's been >> 10 minutes now, which seems very excessive for a table of 9000 rows on a >> 3 GHz desktop machine. > > I would guess that a few of those referenced tables are missing indexes > on the referenced column. Yes, it was a pilot error :( Among the small and properly indexed referencing tables there was a seldom queried but huge log table.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера