pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jianshuo Niu <jniu@wc-group.com>
To: pgsql-performance@postgresql.org
Subject: Help on my database performance
Date: Thu, 31 Jul 2003 11:06:09 -0400
Message-ID: <bgbbaa$bvt$1@main.gmane.org> (raw)

Hi! There:

I ran the same explain analyze on two similar tables. However, the table
with less data took much more time than the one with more data. Could anyone
tell me what happened?
Here is the explain analyze:
explain analyze select productid from tfd_catalog;
NOTICE:  QUERY PLAN:

Seq Scan on tfd_catalog  (cost=0.00..43769.82 rows=161282 width=10) (actual
time
=3928.64..12905.76 rows=161282 loops=1)
Total runtime: 13240.21 msec


explain analyze select productid from hm_catalog;
NOTICE:  QUERY PLAN:

Seq Scan on hm_catalog  (cost=0.00..22181.18 rows=277518 width=9) (actual
time=2
1.32..6420.76 rows=277518 loops=1)
Total runtime: 6772.95 msec

Thank you for your help

Josh






view thread (4+ messages)  latest in thread

Message-ID: <bgbbaa$bvt$1@main.gmane.org>
Permalink:  ../bgbbaa$bvt$1@main.gmane.org/
Also on:    postgresql.org/message-id/bgbbaa$bvt$1@main.gmane.org

 · 

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: jniu@wc-group.com
  Subject: Re: Help on my database performance
  In-Reply-To: <bgbbaa$bvt$1@main.gmane.org>
  References: <bgbbaa$bvt$1@main.gmane.org>

* 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