Re: join over 12 tables takes 3 secs to plan - Mailing list pgsql-performance

From Jeff
Subject Re: join over 12 tables takes 3 secs to plan
Date
Msg-id Pine.BSF.4.44.0301031211170.51014-100000@torgo
Whole thread Raw
In response to join over 12 tables takes 3 secs to plan  (Hilmar Lapp <hlapp@gmx.net>)
Responses Re: join over 12 tables takes 3 secs to plan
List pgsql-performance
On Thu, 2 Jan 2003, Hilmar Lapp wrote:

> I have a query generated by an application (not mine, but there's
> nothing I can find that looks bad about the query itself) that takes an
> excessive amount of time to return even though there are almost no rows
> in the schema yet. 3 secs may not seem to be much, but the query is run
> by a web-application for a page you have to go through quite
> frequently, and it appears the query should be able to execute below 1
> sec easily. I'm running Postgres 7.3.1 on Mac OSX.
>

Hmm.. This won't fix the fact the planner takes three seconds, but since
it is a web application have you tried using PREPARE/EXECUTE so it only
needs to be planned once? (Unless I am mistaken about what prepare/execute
actually do) that way only the first visitor gets the hit..

------------------------------------------------------------------------------
Jeff Trout <jeff@jefftrout.com>                  http://www.jefftrout.com/
   Ronald McDonald, with the help of cheese soup,
       controls America from a secret volkswagon hidden in the past
-------------------------------------------------------------------------------



pgsql-performance by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: join over 12 tables takes 3 secs to plan
Next
From: "Steve Wolfe"
Date:
Subject: Re: Question on hardware & server capacity