Re: Query plan for very large number of joins - Mailing list pgsql-performance

From Simon Riggs
Subject Re: Query plan for very large number of joins
Date
Msg-id 1117841037.3844.1250.camel@localhost.localdomain
Whole thread Raw
In response to Re: Query plan for very large number of joins  (<philb@vodafone.ie>)
List pgsql-performance
On Fri, 2005-06-03 at 13:22 +0100, philb@vodafone.ie wrote:
>
> >>> I am using PostgreSQL (7.4) with a schema that was generated
> >>> automatically (using hibernate). The schema consists of about 650
> >>> relations. One particular query (also generated automatically)
> >>> consists of left joining approximately 350 tables.

> Despite being fairly restricted in scope,
> the schema is highly denormalized hence the large number of tables.

Do you mean normalized? Or do you mean you've pushed the superclass
details down onto each of the leaf classes?

I guess I'm interested in what type of modelling led you to have so many
tables in the first place?

Gotta say, never seen 350 table join before in a real app.

Wouldn't it be possible to smooth out the model and end up with less
tables? Or simply break things up somewhere slightly down from the root
of the class hierarchy?

Best Regards, Simon Riggs




pgsql-performance by date:

Previous
From: William Yu
Date:
Subject: Re: Forcing use of specific index
Next
From: Christopher Browne
Date:
Subject: Re: Insert slow down on empty database