Re: Different performance of two simple queries

Поиск
Список
Период
Сортировка
От petrov.boris.v@mail.ru
Тема Re: Different performance of two simple queries
Дата
Msg-id 564B2BD0.1070104@mail.ru
обсуждение исходный текст
Ответ на Re: Different performance of two simple queries  (Jayadevan M <maymala.jayadevan@gmail.com>)
Список pgsql-novice
On 11/17/2015 02:44 PM, Jayadevan M wrote:
> I would say it is normal. Please read this for explanation :
> http://blog.2ndquadrant.com/postgresql-ctes-are-optimization-fences/

Thanks for the link, now I also recall, that I already read about this
in section 7.8. of docs.
I turns out that in second query I am kind of abused CTE by something
that looks like side-effect. Not sure about how code with this "unneeded
CTE-ism" will be perceived by others. But definitely it is better to
have such option than not to.
In my case, actually, performance of both queries totally meet
requirements so I keep the "normal" query.

Thanks.




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

Предыдущее
От: Jayadevan M
Дата:
Сообщение: Re: Different performance of two simple queries
Следующее
От: Michael Convey
Дата:
Сообщение: Re: [pgsql-novice] Daily digest v1.3706 (6 messages)