Re: Performance Optimization for Dummies 2 - the SQL

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Performance Optimization for Dummies 2 - the SQL
Дата
Msg-id b42b73150610031221y4955e663ped999a83a810d318@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Performance Optimization for Dummies 2 - the SQL  ("Carlo Stonebanks" <stonec.register@sympatico.ca>)
Список pgsql-performance
On 10/3/06, Carlo Stonebanks <stonec.register@sympatico.ca> wrote:
> Please ignore sample 1 - now that I have the logging feature, I can see that
> my query generator algorithm made an error.

can you do explain analyze on the two select queries on either side of
the union separatly?  the subquery is correctly written and unlikely
to be a problem (in fact, good style imo).  so lets have a look at
both sides of facil query and see where the problem is.

merlin

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

Предыдущее
От: Graham Davis
Дата:
Сообщение: Re: BUG #2658: Query not using index
Следующее
От: Chris Browne
Дата:
Сообщение: Re: BUG #2658: Query not using index