Re: pl/pgsql faster than raw SQL?

Поиск
Список
Период
Сортировка
От Gaetano Mendola
Тема Re: pl/pgsql faster than raw SQL?
Дата
Msg-id 422E4948.3090208@bigfoot.com
обсуждение исходный текст
Ответ на pl/pgsql faster than raw SQL?  (Markus Bertheau ☭ <twanger@bluetwanger.de>)
Ответы Re: pl/pgsql faster than raw SQL?
Список pgsql-performance
Markus Bertheau ☭ wrote:
> Hi, I have the following strange situation:

that is no so strange. I have an example where:

SELECT * FROM my_view WHERE field1 = 'New'; ==> 800 seconds

SELECT * FROM my_view;  ==> 2 seconds

the only solution I had was to write a function table with
the second select in a loop that was returnin the row if
the field1 was equal = 'New'.
It's strange but happen.



Regards
Gaetano Mendola









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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: bad plan
Следующее
От: Gaetano Mendola
Дата:
Сообщение: vacuum full, why multiple times ?