Re: Select count(*), the sequel

Поиск
Список
Период
Сортировка
От Mladen Gogala
Тема Re: Select count(*), the sequel
Дата
Msg-id 4CBC3275.9020000@vmsinfo.com
обсуждение исходный текст
Ответ на Re: Select count(*), the sequel  (Vitalii Tymchyshyn <tivv00@gmail.com>)
Список pgsql-performance
  On 10/18/2010 3:58 AM, Vitalii Tymchyshyn wrote:
> Hello.
>
> Did you vacuum postgresql DB before the count(*). I ask this because
> (unless table was created&  loaded in same transaction) on the first
> scan, postgresql has to write hint bits to the whole table. Second scan
> may be way faster.
>
> Best regards, Vitalii Tymchyshyn

Vitalli, yes I did vacuum before the count.

--
Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
www.vmsinfo.com


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

Предыдущее
От: Vitalii Tymchyshyn
Дата:
Сообщение: Re: Select count(*), the sequel
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Help with duration of statement: EXECUTE [PREPARE: COMMIT]