Re: Index on two columns not used

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Index on two columns not used
Дата
Msg-id 45363F3B.1080109@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Index on two columns not used  (Arnaud Lesauvage <thewild@freesurf.fr>)
Ответы Re: Index on two columns not used  (Arnaud Lesauvage <thewild@freesurf.fr>)
Список pgsql-performance
Arnaud Lesauvage wrote:
> It is quite typical, yes. It is the base query of a view. In fact, most
> views have a lot more joins (they join with all the upper-level tables).
> But 150ms is OK, indeed.

If the query using the view does anything more than a "SELECT * FROM
view", you should do an explain analyze of the query instead of the
definition of the view. The access plan might look very different.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: Arnaud Lesauvage
Дата:
Сообщение: Re: Index on two columns not used
Следующее
От: Atesz
Дата:
Сообщение: ACCESS EXCLUSIVE lock