Re: Temp tbl Vs. View

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: radhika(at)88thstreet(dot)com, pgsql-sql(at)postgresql(dot)org
Subject: Re: Temp tbl Vs. View
Date: 2007-03-29 15:46:12
Message-ID: 353111.48354.qm@web31815.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


> 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 queries? Any other design ideas?

Perhaps tsearch2 would work for you. I am just starting to learn about it. Maybe you can create
a tsearch2 GIN index on each table in the view, and then use tsearch2 queries to quickly retrieve
your results.

Regards,
Richard Broersma Jr.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Rodrigo De León 2007-03-29 15:56:33 Re: Temp tbl Vs. View
Previous Message Radhika Sambamurti 2007-03-29 15:26:25 Temp tbl Vs. View