Re: Very long deletion time on a 200 GB database

Поиск
Список
Период
Сортировка
От Shaun Thomas
Тема Re: Very long deletion time on a 200 GB database
Дата
Msg-id 4F467FCD.8090100@peak6.com
обсуждение исходный текст
Ответ на Re: Very long deletion time on a 200 GB database  (Greg Spiegelberg <gspiegelberg@gmail.com>)
Ответы Re: Very long deletion time on a 200 GB database  (Andy Colson <andy@squeakycode.net>)
Список pgsql-performance
On 02/23/2012 11:56 AM, Greg Spiegelberg wrote:

> I know there are perils in using ctid but with the LOCK it should be
> safe. This transaction took perhaps 30 minutes and removed 100k rows
> and once the table was VACUUM'd afterward it freed up close to 20 GB
> on the file system.

It took *30 minutes* to delete 100k rows? And 100k rows were using 20GB?
Is that off by an order of magnitude?

Using the ctid is a cute trick, though. :)

--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604
312-444-8534
sthomas@peak6.com

______________________________________________

See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email

В списке pgsql-performance по дате отправления:

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: set autovacuum=off
Следующее
От: Andy Colson
Дата:
Сообщение: Re: Very long deletion time on a 200 GB database