Re: Performance difference when using views

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Performance difference when using views
Дата
Msg-id 27481.1099346908@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Performance difference when using views  (Alvaro Nunes Melo <al_nunes@atua.com.br>)
Список pgsql-performance
Alvaro Nunes Melo <al_nunes@atua.com.br> writes:
> I have some views that are used to make some queries simplest. But when
> I use them there is a performance loss, because the query don't use
> indexes anymore. Below I'm sending the query with and without the view,
> its execution times, explains and the view's body.

It's not the same query, because you are implicitly changing the order
of the LEFT JOINs when you group some of them into a subquery (view).
Join order is significant for outer joins ...

            regards, tom lane

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [PATCHES] [HACKERS] ARC Memory Usage analysis
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Performance difference when using views