From: Nis Jørgensen <nis@superlativ.dk>
To: pgsql-performance@postgresql.org
Subject: Re: slow query
Date: Mon, 02 Jul 2007 15:20:37 +0200
Message-ID: <f6au3g$f0e$1@sea.gmane.org> (raw)
In-Reply-To: <919b7db60707020307x75a347a5v1051e434b0e583d9@mail.gmail.com>
References: <919b7db60707020304p75e80e3av3ea79d1951989ffe@mail.gmail.com>
<919b7db60707020307x75a347a5v1051e434b0e583d9@mail.gmail.com>
Vidhya Bondre skrev:
> Hi all,
>
> I need a very urgent help from you all in below case.
>
> I have a query
[snipped]
> after vacuuming the db it has become very very slow ... 100 times slow.
>
> Please suggest ?
Suggestions for getting more/better responses:
- Format your query nicely before posting it.
- Post the relevant table definitions, including indices
- Tell us what the query is supposed to do.
Suggestions for finding the cause of your problem:
- Run "EXPLAIN ANALYZE" on the query.
- Try to "remove bits" of the query to see which bits slow it down - try
to find a "minimal query" which shows the performance problem. If you
can, use the output of "EXPLAIN ANALYZE" obtained above. For instance,
all the SUMs in the SELECT clause are unlikely to significantly affect
the running time.
- Run "EXPLAIN ANALYZE" on the "minimal query", post the results.
Nis
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: nis@superlativ.dk
Subject: Re: slow query
In-Reply-To: <f6au3g$f0e$1@sea.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