Guideline on use of temporary tables

Поиск
Список
Период
Сортировка
От Jimmy Choi
Тема Guideline on use of temporary tables
Дата
Msg-id 5770602b0710121328gf25bbd3i4196961fb2adb1f2@mail.gmail.com
обсуждение исходный текст
Ответы Re: Guideline on use of temporary tables
Re: Guideline on use of temporary tables
Список pgsql-general
I'm looking for general guideline on the use of temporary tables.

I would like to use temporary table as a caching mechanism to speed up
queries within the same session. Specifically, a temporary table is
created to store a subset of data from a possibly large table, and
subsequent queries select from the temporary table instead of
re-applying the same complex filters on the actual table again and
again.

Is this what temporary table is designed for? Are there caveats that I
should be aware of? Can you think of other better alternatives?

Thank you very much.

В списке pgsql-general по дате отправления:

Предыдущее
От: Jack Orenstein
Дата:
Сообщение: Re: [OT] xkcd - A webcomic of romance, sarcasm, math, and language
Следующее
От: Andreas
Дата:
Сообщение: can I define own variables?