Re: Performance problems testing with Spamassassin 3.1.0

Поиск
Список
Период
Сортировка
От John Arbash Meinel
Тема Re: Performance problems testing with Spamassassin 3.1.0
Дата
Msg-id 42EA759A.60807@arbash-meinel.com
обсуждение исходный текст
Ответ на Re: Performance problems testing with Spamassassin 3.1.0  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
Josh Berkus wrote:

>Dennis,
>
>
>
>>      EXCEPTION WHEN unique_violation THEN
>>
>>
>
>I seem to remember that catching an exception in a PL/pgSQL procedure was a
>large performance cost.   It'd be better to do UPDATE ... IF NOT FOUND.
>
>
>
Actually, he was doing an implicit UPDATE IF NOT FOUND in that he was doing:

UPDATE

IF found THEN return;

INSERT
EXCEPT
...

So really, the exception should never be triggered.
John
=:->


Вложения

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

Предыдущее
От: "Luke Lonergan"
Дата:
Сообщение: Re: [PATCHES] COPY FROM performance improvements
Следующее
От: "Jeffrey W. Baker"
Дата:
Сообщение: Re: Performance problems on 4/8way Opteron (dualcore) HP