Re: Very slow stored proc

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Very slow stored proc
Дата
Msg-id 20041223145744.GD19065@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: Very slow stored proc  (Együd Csaba (Freemail) <csegyud@freemail.hu>)
Ответы Re: Very slow stored proc
Список pgsql-general
On Thu, Dec 23, 2004 at 10:51:46AM +0100, Együd Csaba (Freemail) wrote:

Hi,

> I've got it. Not the date handling is slow but the string handling.
> Eliminating the huge string buffer and running all the inserts row by row,
> the overall running time is 12 sec.
> So as a conclusion never use large strings in plpgsql functions.

I wonder why you are creating a table at all, when you could probably
use a SRF instead in the queries where you are using such table.

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"La tristeza es un muro entre dos jardines" (Khalil Gibran)

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

Предыдущее
От: Lonni J Friedman
Дата:
Сообщение: Re: monitoring tools
Следующее
От: "Jason Tesser"
Дата:
Сообщение: Re: monitoring tools