Re: Query plan for very large number of joins
От | Simon Riggs |
---|---|
Тема | Re: Query plan for very large number of joins |
Дата | |
Msg-id | 1117841037.3844.1250.camel@localhost.localdomain обсуждение исходный текст |
Ответ на | Re: Query plan for very large number of joins (<philb@vodafone.ie>) |
Список | 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 по дате отправления: