From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Jason Leach <jason(dot)leach(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 26h Query. |
Date: | 2005-03-20 22:30:44 |
Message-ID: | 20050320223038.GA32477@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)svana(dot)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.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2005-03-21 03:50:41 | Re: Copression |
Previous Message | Brent Wood | 2005-03-20 22:25:44 | Re: Statistics with PostgreSQL |