Re: Temp tbl Vs. View

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: Temp tbl Vs. View
Дата
Msg-id 353111.48354.qm@web31815.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Temp tbl Vs. View  ("Radhika Sambamurti" <radhika@88thstreet.com>)
Список 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 по дате отправления:

Предыдущее
От: "Radhika Sambamurti"
Дата:
Сообщение: Temp tbl Vs. View
Следующее
От: "Rodrigo De León"
Дата:
Сообщение: Re: Temp tbl Vs. View