pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: kevin kempter <kevin@kevinkempterllc.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Join runs for > 10 hours and then fills up >1.3TB of disk space
Date: Fri, 16 May 2008 09:16:19 +0100
Message-ID: <482D42D3.6000302@archonet.com> (raw)
In-Reply-To: <8B5A9097-109E-45F5-A658-7FC723EA75F3@kevinkempterllc.com>
References: <CEFBA6FF-0E0A-41A0-959E-7DBBDA296825@kevinkempterllc.com>
<482D3A60.30006@archonet.com>
<8B5A9097-109E-45F5-A658-7FC723EA75F3@kevinkempterllc.com>
kevin kempter wrote:
> I'm expecting 9,961,914 rows returned. Each row in the big table should
> have a corresponding key in the smaller tale, I want to basically
> "expand" the big table column list by one, via adding the appropriate
> key from the smaller table for each row in the big table. It's not a
> cartesion product join.
Didn't seem likely, to be honest.
What happens if you try the query as a cursor, perhaps with an order-by
on customer_id or something to encourage index use? Do you ever get a
first row back?
In fact, what happens if you slap an index over all your join columns on
xsegment_dim? With 7,000 rows that should make it a cheap test.
--
Richard Huxton
Archonet Ltd
view thread (11+ messages) latest in thread
Message-ID: <482D42D3.6000302@archonet.com> Permalink: ../482D42D3.6000302@archonet.com/ Also on: postgresql.org/message-id/482D42D3.6000302@archonet.com ·
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 using the --to and --cc options: reply via email To: pgsql-performance@postgresql.org Cc: dev@archonet.com, kevin@kevinkempterllc.com Subject: Re: Join runs for > 10 hours and then fills up >1.3TB of disk space In-Reply-To: <482D42D3.6000302@archonet.com> * 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