Re: Various performance questions

From: Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: Dror Matalon <dror(at)zapatec(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Various performance questions
Date: 2003-10-27 07:22:27
Message-ID: 3F9CC7B3.2090501@persistent.co.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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.

Also in the where clause, does explicitly typecasting helps?

Like 'where channel<5000::int2;'

HTH

Shridhar

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Dror Matalon 2003-10-27 07:43:57 Re: Various performance questions
Previous Message Dror Matalon 2003-10-27 07:17:03 Re: Various performance questions