Re: SELECT count(*) Generating Lots of Write Activity

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SELECT count(*) Generating Lots of Write Activity
Дата
Msg-id 11636.1123125949@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SELECT count(*) Generating Lots of Write Activity  ("Logan Bowers" <logan@zillow.com>)
Список pgsql-general
"Logan Bowers" <logan@zillow.com> writes:
> In my case, the "raw" data is on the order of hundreds of gigabytes and
> the increased write activity is a HUGE penalty.

And you think the extra activity from repeated clog tests would not be a
huge penalty?

AFAICS this would only be likely to be a win if you were sure that no
row would be visited more than once before you drop (or truncate) the
containing table.  Which leads me to wonder why you inserted the row
into the database in the first place, instead of doing the data
aggregation on the client side.

            regards, tom lane

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

Предыдущее
От: "Logan Bowers"
Дата:
Сообщение: Re: SELECT count(*) Generating Lots of Write Activity
Следующее
От: Joseph Shraibman
Дата:
Сообщение: What happens when wal fails?