From: Rod Taylor <rbt@rbt.ca>
To: Roman Fail <rfail@posportal.com>
Cc: Pgsql Performance <pgsql-performance@postgresql.org>
Subject: Re: 7.3.1 New install, large queries are slow
Date: 15 Jan 2003 14:53:11 -0500
Message-ID: <1042660391.61110.36.camel@jester> (raw)
In-Reply-To: <9B1C77393DED0D4B9DAA1AA1742942DA0E4BF9@pos_pdc.posportal.com>
References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4BF9@pos_pdc.posportal.com>
I didn't see the query itself in the message, but it looks to me like
it's poorly formed. Could you send it?
By quick glance, either you're using a bunch of explicit joins that are
poorly formed (you've made a bad choice in order) or those particular
IDs are really popular. There are a number of sequential scans that
possibly should be index scans.
> EXPLAIN ANALYZE RESULTS:
> Limit (cost=370518.31..370518.31 rows=1 width=540) (actual time=1168722.18..1168722.20 rows=5 loops=1)
> -> Sort (cost=370518.31..370518.31 rows=1 width=540) (actual time=1168722.18..1168722.18 rows=5 loops=1)
> Sort Key: b.batchdate
--
Rod Taylor <rbt@rbt.ca>
PGP Key: http://www.rbt.ca/rbtpub.ascAttachments:
signature.asc (application/pgp-signature, 186B) download
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: rbt@rbt.ca, rfail@posportal.com
Subject: Re: 7.3.1 New install, large queries are slow
In-Reply-To: <1042660391.61110.36.camel@jester>
References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4BF9@pos_pdc.posportal.com> <1042660391.61110.36.camel@jester>
* 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