pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: Colton A Smith <smith@cs.utk.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: poor performance involving a small table
Date: Tue, 31 May 2005 09:52:26 +0800
Message-ID: <429BC35A.7060904@familyhealth.com.au> (raw)
In-Reply-To: <Pine.GSO.4.62.0505261052180.25866@hydra3>
References: <Pine.GSO.4.62.0505261052180.25866@hydra3>

>  Seq Scan on sensor  (cost=0.00..1.25 rows=1 width=6) (actual 
> time=0.055..0.068 rows=1 loops=1)
>    Filter: (sensor_id = 12)
>  Total runtime: 801641.333 ms
> (3 rows)
> 
> Can anybody help me out?  Thanks so much!

Does your table have millions of dead rows?  Do you vacuum once an hour? 
  Run VACUUM FULL ANALYE sensor;

Chris




view thread (4+ messages)  latest in thread

Message-ID: <429BC35A.7060904@familyhealth.com.au>
Permalink:  ../429BC35A.7060904@familyhealth.com.au/
Also on:    postgresql.org/message-id/429BC35A.7060904@familyhealth.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: chriskl@familyhealth.com.au, smith@cs.utk.edu
  Subject: Re: poor performance involving a small table
  In-Reply-To: <429BC35A.7060904@familyhealth.com.au>
  References: <Pine.GSO.4.62.0505261052180.25866@hydra3> <429BC35A.7060904@familyhealth.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox