Re: Queries joining views

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Queries joining views
Дата
Msg-id 5132.1156182502@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Queries joining views  (Alban Hertroys <alban@magproductions.nl>)
Список pgsql-general
Alban Hertroys <alban@magproductions.nl> writes:
> Is there a trick to make this work a bit faster?

Have you really shown us the right queries for those explain results?
I don't see where the second plan is testing "dir <> 1" at all.
It looks like the first one is faster because it's using a partial
index that has predicate dir <> 1, while the second one is using
a much larger full index.  But I don't see where the second plan
is applying that restriction, so I wonder if you forgot it in the
query.

            regards, tom lane

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: setting the value returned by PQcmdTuples
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Queries joining views