Re: Temp tbl Vs. View - Mailing list pgsql-sql

From Richard Broersma Jr
Subject Re: Temp tbl Vs. View
Date
Msg-id 353111.48354.qm@web31815.mail.mud.yahoo.com
Whole thread Raw
In response to Temp tbl Vs. View  ("Radhika Sambamurti" <radhika@88thstreet.com>)
List 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.


pgsql-sql by date:

Previous
From: "Radhika Sambamurti"
Date:
Subject: Temp tbl Vs. View
Next
From: "Rodrigo De León"
Date:
Subject: Re: Temp tbl Vs. View