pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lewis Cunningham <lewisc@rocketmail.com>
To: Ranieri Mazili <ranieri.oliveira@terra.com.br>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Tunning PostgreSQL performance for views on Windows
Date: Mon, 30 Jul 2007 05:22:38 -0700 (PDT)
Message-ID: <124206.3554.qm@web35613.mail.mud.yahoo.com> (raw)
In-Reply-To: <46A8AF1B.4090607@terra.com.br>

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.oliveira@terra.com.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
----------------------------------------------------------



view thread (5+ messages)

Message-ID: <124206.3554.qm@web35613.mail.mud.yahoo.com>
Permalink:  ../124206.3554.qm@web35613.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/124206.3554.qm@web35613.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: lewisc@rocketmail.com, ranieri.oliveira@terra.com.br, pgsql-general@postgresql.org
  Subject: Re: [SQL] Tunning PostgreSQL performance for views on Windows
  In-Reply-To: <124206.3554.qm@web35613.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox