From: | Bill Moran <wmoran(at)potentialtech(dot)com> |
---|---|
To: | Ranieri Mazili <ranieri(dot)oliveira(at)terra(dot)com(dot)br> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Tunning PostgreSQL performance for views on Windows |
Date: | 2007-07-26 14:49:05 |
Message-ID: | 20070726104905.e7980368.wmoran@potentialtech.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-sql |
In response to Ranieri Mazili <ranieri(dot)oliveira(at)terra(dot)com(dot)br>:
>
> 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.
Standard tuning advice would apply, as well as the advice not to cross-
post. Also boilerplate advice that we can't really help much without
more detail.
Good places to start with tuning:
http://www.powerpostgresql.com/PerfList
http://www.varlena.com/GeneralBits/Tidbits/perf.html
However, if the data only changes once a day, you may be better of
materializing the data, instead of using a view. Run a cron job
once a day that does your big query and stores the data in another
table vi SELECT INTO might be better for you than a view.
> 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 2: Don't 'kill -9' the postmaster
--
Bill Moran
http://www.potentialtech.com
From | Date | Subject | |
---|---|---|---|
Next Message | Harald Armin Massa | 2007-07-26 15:17:03 | Re: Tunning PostgreSQL performance for views on Windows |
Previous Message | Ranieri Mazili | 2007-07-26 14:26:35 | Tunning PostgreSQL performance for views on Windows |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2007-07-26 15:00:59 | Re: How to cast, if type has spaces in the name |
Previous Message | Ranieri Mazili | 2007-07-26 14:26:35 | Tunning PostgreSQL performance for views on Windows |