Re: index only scan taking longer to run

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: index only scan taking longer to run
Дата
Msg-id CAHOFxGoROVhzYfD8_3ifkV8kNQVF9KgHR6qZJRQiH2QThSt98w@mail.gmail.com
обсуждение исходный текст
Ответ на index only scan taking longer to run  (Ayub M <hiayub@gmail.com>)
Список pgsql-general
Without knowledge of the structure of your data, or even real table/field names to be able to read the query with some sense of what the tables might be like, offering advice is rather difficult. I didn't notice any nodes with huge estimation problems at least.

I will suggest that DISTINCT is often a bad code smell for me with expecting the system to sort data and remove duplicates, when I should have controlled my set through proper joins.

Also, when I see a join condition on the result of a subquery, I question the data structure. re:
bravo_lima = ( SELECT max(bravo_lima) FROM five_lima foxtrot_four ...)

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

Предыдущее
От: ERR ORR
Дата:
Сообщение: Re: Oracle vs. PostgreSQL - a comment
Следующее
От: David Rowley
Дата:
Сообщение: Re: index only scan taking longer to run