Re: Slow query

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Yonatan Goraly <ygoraly(at)sbcglobal(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Slow query
Date: 2003-10-27 17:36:30
Message-ID: 20031027173630.GD24272@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 27, 2003 at 12:08:31AM +0200, Yonatan Goraly wrote:
> I have a query that uses the same view 6 times. It seems that the
> database engine is calculating the view each time.
> The result is very poor performance. The same query takes 2 sec with MS
> SQL, and more than 10 sec with PostgreSQL.
> Is there a method to improve the performance besides merging the
> components of the view into one table?

Say, have you ANALYZEd your tables ?

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Coge la flor que hoy nace alegre, ufana. ¿Quién sabe si nacera otra mañana?"

In response to

  • Slow query at 2003-10-26 22:08:31 from Yonatan Goraly

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Patrick Hatcher 2003-10-27 17:55:06 Re: PostgreSQL with MS Query?
Previous Message Joshua D. Drake 2003-10-27 17:27:11 Re: PostgreSQL with MS Query?