Re: make bulk deletes faster?

Поиск
Список
Период
Сортировка
Искать
От
Michael Fuhr
Тема
Re: make bulk deletes faster?
Дата
Msg-id
20051219023616.GA89670@winnie.fuhr.org
Ответ на
Список
Дерево обсуждения
make bulk deletes faster? James Klo <jklo@arkitec.com>
Re: make bulk deletes faster? Mitch Skinner <lists@arctur.us>
Re: make bulk deletes faster? James Klo <jklo@arkitec.com>
Re: make bulk deletes faster? "Jim C. Nasby" <jnasby@pervasive.com>
Re: make bulk deletes faster? Michael Fuhr <mike@fuhr.org>
Re: make bulk deletes faster? Ang Chin Han <ang.chin.han@gmail.com>
On Sat, Dec 17, 2005 at 09:10:40PM -0800, James Klo wrote:
> I'd like some suggestions on how to get the deletes to happen faster, as 
> while deleting individually appears to extremely fast, when I go to 
> delete lots of rows the operation takes an extremely long time to 
> complete (5000 rows takes about 3 minutes, 1000000 rows takes almost 
> close to 4 hours or more depending upon server load; wall time btw).

Those times do seem excessive -- do any other tables have foreign
key references to the table you're deleting from?  If so, do those
tables have indexes on the referring columns?  Does this table or
any referring table have triggers?  Also, are you regularly vacuuming
and analyzing your tables?  Have you examined pg_locks to see if
an unacquired lock might be slowing things down?

-- 
Michael Fuhr
В списке pgsql-performance по дате отправления
От: Simon Riggs
Дата:
От: Scott Marlowe
Дата:
FAQ