| От | 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
RES: Improving SQL performance |
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера