Re: [SQL] Tunning PostgreSQL performance for views on Windows

From: Lewis Cunningham <lewisc(at)rocketmail(dot)com>
To: Ranieri Mazili <ranieri(dot)oliveira(at)terra(dot)com(dot)br>, pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Tunning PostgreSQL performance for views on Windows
Date: 2007-07-30 12:22:38
Message-ID: 124206.3554.qm@web35613.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

How big are the underlying tables?

If they are large, are you partitioning?

Since the values only change daily, if the end result is a reasonable
size, have you considered using a CTAS rather than views?

LewisC

--- Ranieri Mazili <ranieri(dot)oliveira(at)terra(dot)com(dot)br> wrote:

> Hello,
>
> I'm developing a BI and as database it's using postgresql 8.2, how
> data
> are very detailed, I'm creating a view to consolidate the most
> important
> data, but the performance of view is very poor, 1 minute to perform
> more
> or less without where clause.
> I need to know how I can increase the performance, if exist some
> option
> to do cache, because the view will change only one time per day.
> My configuration is default, without modifications after install.
> I'm using windows 2003 server with a dell server with 4GB of
> memory.
>
> To create the view, I created some functions, and then perform they
> on
> one select like:
> select A.field1, B.field2, ... from function_A() A, function_B()
> B...
> Is this the best way to do it?
>
> I appreciate any help.
>
> Thanks
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

-----------------------------------------------------------
Lewis R Cunningham

An Expert's Guide to Oracle Technology
http://blogs.ittoolbox.com/oracle/guide/

EnterpriseDB: The Definitive Reference
http://tinyurl.com/39246e
----------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Staubo 2007-07-30 12:30:28 Re: Possible new feature
Previous Message mgould 2007-07-30 12:02:29 Possible new feature

Browse pgsql-sql by date

  From Date Subject
Next Message Jon Horsman 2007-07-30 21:29:14 Connection Limit
Previous Message Penchalaiah P. 2007-07-30 08:11:19 hi