Re: postgres 7.4 at 100% - Mailing list pgsql-performance

From Christopher Kings-Lynne
Subject Re: postgres 7.4 at 100%
Date
Msg-id 40E1266D.3040607@familyhealth.com.au
Whole thread Raw
In response to Re: postgres 7.4 at 100%  (Chris Cheston <ccheston@gmail.com>)
Responses Re: postgres 7.4 at 100%
List pgsql-performance
> live=# explain analyze SELECT id FROM calllogs WHERE from = 'you';
>                                                 QUERY PLAN
> ----------------------------------------------------------------------------------------------------------
>  Seq Scan on calllogs  (cost=0.00..136.11 rows=24 width=4) (actual
> time=0.30..574.72 rows=143485 loops=1)
>    Filter: (from = 'you'::character varying)
>  Total runtime: 676.24 msec
> (3 rows)

Have you got an index on calllogs(from)?

Have you vacuumed and analyzed that table recently?

Chris


pgsql-performance by date:

Previous
From: Chris Cheston
Date:
Subject: Re: postgres 7.4 at 100%
Next
From: Chris Cheston
Date:
Subject: Re: postgres 7.4 at 100%