Re: Improving SQL performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Improving SQL performance
Дата
Msg-id 28140.1168540267@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Improving SQL performance  ("Carlos H. Reimer" <carlos.reimer@opendb.com.br>)
Ответы RES: Improving SQL performance  ("Carlos H. Reimer" <carlos.reimer@opendb.com.br>)
RES: Improving SQL performance  ("Carlos H. Reimer" <carlos.reimer@opendb.com.br>)
Список pgsql-performance
"Carlos H. Reimer" <carlos.reimer@opendb.com.br> writes:
> I know that the problem with the following SQL is the "LOG.CODCEP =
> ENDE.CODCEP||CODLOG" condition, but what can I
> do to improve the performance?

Seems the problem is not using an index for tt_log.  Do you have an
index on tt_log.codcep?  If so, maybe you need to cast the result of
the concatenation to char(8) to get it to use the index.

            regards, tom lane

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

Предыдущее
От: Russell Smith
Дата:
Сообщение: Re: Improving SQL performance
Следующее
От: Kim
Дата:
Сообщение: Re: unusual performance for vac following 8.2 upgrade