Re: stored procedure performance

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: stored procedure performance
Дата
Msg-id 92CFEAC3-0F93-4A73-B372-49E1EE3B54A8@myrealbox.com
обсуждение исходный текст
Ответ на stored procedure performance  (Rick Gigger <rick@alpinenetworking.com>)
Список pgsql-general
On Dec 14, 2005, at 11:38 , Rick Gigger wrote:

> What actually fixes it is to run it a while and made sure there is
> a bunch of data there (even if it is deleted and not visible to
> anything) and run vacuum analyze.  Then recreate the stored
> procedure.  Then run the stored procedure.

What happens if you just run vacuum analyze before running the stored
procedure (i.e., skipping the recreate the stored procedure step)?
Running vacuum analyze (or at least just analyze) helps keep the
statistics used by the query planner up to date. Recreating the
function might just be a red herring.

Michael Glaesemann
grzm myrealbox com




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

Предыдущее
От: Rick Gigger
Дата:
Сообщение: stored procedure performance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: "incomplete startup packet" on SGI