pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: andrew@pillette.com
To: Colton A Smith <smith@cs.utk.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: poor performance involving a small table
Date: Mon, 30 May 2005 19:31:06 -0700
Message-ID: <200505310231.j4V2V6e25466@pillette.com> (raw)

This is a multi-part message in MIME format.

--bound1117506666
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Colton A Smith <smith@cs.utk.edu> wrote ..

------------------------------------------------------------------------------------------------
>   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)


Do you have some foreign keys pointing in the other direction? In other words, is there another table such that a delete on sensors causing a delete (or a check of some key) in another table? EXPLAIN doesn't show these. And that might be a big table missing an index.

--bound1117506666--



view thread (4+ messages)

Message-ID: <200505310231.j4V2V6e25466@pillette.com>
Permalink:  ../200505310231.j4V2V6e25466@pillette.com/
Also on:    postgresql.org/message-id/200505310231.j4V2V6e25466@pillette.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andrew@pillette.com, smith@cs.utk.edu
  Subject: Re: poor performance involving a small table
  In-Reply-To: <200505310231.j4V2V6e25466@pillette.com>

* 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