Re: Various performance questions

Поиск
Список
Период
Сортировка
От Dror Matalon
Тема Re: Various performance questions
Дата
Msg-id 20031027074357.GG2979@rlx11.zapatec.com
обсуждение исходный текст
Ответ на Re: Various performance questions  (Shridhar Daithankar <shridhar_daithankar@persistent.co.in>)
Список pgsql-performance
On Mon, Oct 27, 2003 at 12:52:27PM +0530, Shridhar Daithankar wrote:
> Dror Matalon wrote:
>
> >On Mon, Oct 27, 2003 at 01:04:49AM -0500, Christopher Browne wrote:
> >>Most of the time involves:
> >>
> >>a) Reading each page of the table, and
> >>b) Figuring out which records on those pages are still "live."
> >
> >
> >The table has been VACUUM ANALYZED so that there are no "dead" records.
> >It's still not clear why select count() would be slower than select with
> >a "where" clause.
>
> Do a vacuum verbose full and then everything should be within small range
> of each other.
>

I did vaccum full verbose and the results are the same as before, 55
seconds for count(*) and 26 seconds for count(*) where channel < 5000.

> Also in the where clause, does explicitly typecasting helps?
>
> Like 'where channel<5000::int2;'

It makes no difference.

>
>  HTH
>
>  Shridhar
>

--
Dror Matalon
Zapatec Inc
1700 MLK Way
Berkeley, CA 94709
http://www.zapatec.com

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

Предыдущее
От: Shridhar Daithankar
Дата:
Сообщение: Re: Various performance questions
Следующее
От: Neil Conway
Дата:
Сообщение: Re: explicit casting required for index use