Re: Quad Opteron stuck in the mud

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Quad Opteron stuck in the mud
Дата
Msg-id 1121295076.3970.381.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Quad Opteron stuck in the mud  (Dan Harris <fbsd@drivefaster.net>)
Список pgsql-performance
On Wed, 2005-07-13 at 12:54 -0600, Dan Harris wrote:
> For example, as I'm writing this, I am running an UPDATE statement
> that will affect a small part of the table, and is querying on an
> indexed boolean field.

An indexed boolean field?

Hopefully, ftindex is false for very few rows of the table?

Try changing the ftindex to be a partial index, so only index the false
values. Or don't index it at all.

Split the table up into smaller pieces.

Don't use an UPDATE statement. Keep a second table, and insert records
into it when you would have updated previously. If a row is not found,
you know that it has ftindex=true. That way, you'll never have row
versions building up in the main table, which you'll still get even if
you VACUUM.

Best Regards, Simon Riggs




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

Предыдущее
От: Ian Westmacott
Дата:
Сообщение: Re: cost-based vacuum
Следующее
От: Marc McIntyre
Дата:
Сообщение: Slow Query