Re: [SQL] Temp tbl Vs. View

2007-03-29 Thread Rodrigo De León
On 3/29/07, Radhika Sambamurti <[EMAIL PROTECTED]> wrote: Hello, I have an interesing problem relating to sql and performance issues and am looking at ways I can increase the performace from postgres. Currently I have a view created from two tables. All the selects are being done on the view -

Re: [SQL] Temp tbl Vs. View

2007-03-29 Thread Richard Broersma Jr
> select from the view is taking a lot of time (7000 ms) as per explain > analyze. Both the primary and secondary tables have about 400,000 rows. > > My question is how can I fix this? > Would it be better to create a temporary table for just daily data and > have the view for more extended queri

[SQL] Temp tbl Vs. View

2007-03-29 Thread Radhika Sambamurti
Hello, I have an interesing problem relating to sql and performance issues and am looking at ways I can increase the performace from postgres. Currently I have a view created from two tables. All the selects are being done on the view - which normally does not take a lot of time, but because my w