Re: Select very slow... - Mailing list pgsql-sql

From Joseph Shraibman
Subject Re: Select very slow...
Date
Msg-id 3AB69C1E.2EE4841D@selectacast.net
Whole thread Raw
In response to Re: Select very slow...  (David Olbersen <dave@slickness.org>)
List pgsql-sql
David Olbersen wrote:
> 
> On Sun, 18 Mar 2001, Fernando Eduardo B. L. e Carvalho wrote:
> 
> >   select  p.city,count(*) from sales s, person p where s.doc = p.doc
> > group by p.city;
> >
> >    Anyone help-me?
> 
> 1: VACUUM ANALYZE sales
>    VACUUM ANALYZE person;
> 
> 2: That 'count(*)' is going to be slow.
>    Try counting a column that's indexed (p.doc might work?)
> 
I don't think that is true.


--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: count() and multiple tables
Next
From: Joseph Shraibman
Date:
Subject: Re: count() and multiple tables