Re: [GENERAL] select query takes 13 seconds to run with index - Mailing list pgsql-performance

From hubert depesz lubaczewski
Subject Re: [GENERAL] select query takes 13 seconds to run with index
Date
Msg-id 20080527082201.GA17943@depesz.com
Whole thread Raw
In response to Re: [GENERAL] select query takes 13 seconds to run with index  (mark <markkicks@gmail.com>)
Responses Re: [GENERAL] select query takes 13 seconds to run with index
List pgsql-performance
On Mon, May 26, 2008 at 04:32:50PM -0700, mark wrote:
> >> EXPLAIN ANALYZE select * from pokes where uid = 578439028 order by id
> >> DESC limit 6;
> > The estimate is way off, when was the last time Vaccum was on the table?
> about a week ago i ran this VACUUM VERBOSE ANALYZE;
> this table is never updated or deleted, rows are just inserted...

1. boost default_statistics_target
2. run analyze more often - daily job for example
3. create index q on pokes (uid, id); should help

depesz

pgsql-performance by date:

Previous
From: PFC
Date:
Subject: Re: [GENERAL] select query takes 13 seconds to run with index
Next
From: mark
Date:
Subject: Re: [GENERAL] select query takes 13 seconds to run with index