Re: join over 12 tables takes 3 secs to plan

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: Hilmar Lapp <hlapp(at)gmx(dot)net>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: join over 12 tables takes 3 secs to plan
Date: 2003-01-03 17:12:44
Message-ID: Pine.BSF.4.44.0301031211170.51014-100000@torgo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc 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(at)jefftrout(dot)com> http://www.jefftrout.com/
Ronald McDonald, with the help of cheese soup,
controls America from a secret volkswagon hidden in the past
-------------------------------------------------------------------------------

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Joao Filipe Placido 2003-01-03 18:00:12 ClassCastException with LargeObjectAPI and Tomcat Connection Pool (DBCP)
Previous Message scott.marlowe 2003-01-03 17:01:29 Re: join over 12 tables takes 3 secs to plan

Browse pgsql-performance by date

  From Date Subject
Next Message Steve Wolfe 2003-01-03 17:31:54 Re: Question on hardware & server capacity
Previous Message scott.marlowe 2003-01-03 17:01:29 Re: join over 12 tables takes 3 secs to plan