Re: PREPARE and stuff

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: PREPARE and stuff
Дата
Msg-id 87myyq9vny.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на PREPARE and stuff  (PFC <lists@peufeu.com>)
Список pgsql-performance
"PFC" <lists@peufeu.com> writes:

>     Suppose a web application with persistent database connections.
>     I have some queries which take longer to plan than to execute !

There have periodically been discussions about a shared plan cache but
generally the feeling is that it would do more harm than good and there are no
plans to implement anything like that.

For a web application though you would expect to be executing the same queries
over and over again since you would be executing the same pages over and over
again. So just a regular prepared query ought to good for your needs.

You do not want to be reconnecting to the database for each page fetch.
Replanning queries is the least of the problems with that approach.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: "Andreas Kostyrka"
Дата:
Сообщение: Re: PREPARE and stuff
Следующее
От: PFC
Дата:
Сообщение: Re: PREPARE and stuff