From: Gene Selkov Jr. <selkovjr@mcs.anl.gov>
To: pierre <pierre@desertmoon.com>
To: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Joining bug????
Date: Mon, 26 Oct 1998 22:18:25 -0500
Message-ID: <199810270417.WAA27985@antares.mcs.anl.gov> (raw)
In-Reply-To: <199810270339.DAA95886@out5.ibm.net>
> I've been attempting to get my DB tuned to handle joins as best as
> possible. However, no matter which way I try to perform the joins, if I
> attempt to join more than two or three tables the joins becomes
> unbearably long not matter how many indexes I create in however many ways.
Ditto. Never saw a quadruple join succeed, even with relatively small tables.
> My only solution was to create a hybrid table that contains the join of
> all of the tables I'm searching on with multi-keyed indexes. This is a
> VERY kludgy solution that makes changing the keys to my DB hard to change.
The solution I use may be the worst imaginable kludge, but it works great: I do the joins (as well as other set operations) on the client side. Perl hashes are very good for that.
--Gene
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-sql@postgresql.org
Cc: selkovjr@mcs.anl.gov, pierre@desertmoon.com
Subject: Re: [SQL] Joining bug????
In-Reply-To: <199810270417.WAA27985@antares.mcs.anl.gov>
References: <199810270339.DAA95886@out5.ibm.net> <199810270417.WAA27985@antares.mcs.anl.gov>
* 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