Re: 26h Query. - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: 26h Query.
Date
Msg-id 20050320223038.GA32477@svana.org
Whole thread Raw
In response to 26h Query.  (Jason Leach <jason.leach@gmail.com>)
List pgsql-general
On Sun, Mar 20, 2005 at 10:10:14AM -0800, Jason Leach wrote:
> hi,
>
> I'm having a bit of trouble with my SQL query. It takes about 26h to
> run on a 3Ghz PC.  I'd really like to speed this up.
>
> I put this query in a loop to iterate over 20 tables (each table
> including summary has 400k records), each time the table name changes.
> I this case it's m_alal.  Each table has an identical primary key
> ECP_TAG but the RATING column is different.  What I doing is:

You're going to need to post the EXPLAIN ANALYZE output if you expect
any meaningful response...
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Alex Adriaanse
Date:
Subject: Tracking row updates
Next
From: Marcin Piotr Grondecki
Date:
Subject: Re: Question insert data