Re: Grabbing Newest Records From Duplicates

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Grabbing Newest Records From Duplicates
Дата
Msg-id 7757.1174061861@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Grabbing Newest Records From Duplicates  ("Travis Whitton" <tinymountain@gmail.com>)
Список pgsql-sql
"Travis Whitton" <tinymountain@gmail.com> writes:
> One last question, using the "weather report" example, is it going to
> improve performance for the DISTINCT ON query to add an index to the
> location and time columns?

A two-column index matching the ORDER BY that you use might help,
or then again might not --- for full-table scans it's often faster
to sort than to try to use an index.
        regards, tom lane


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

Предыдущее
От: Gerardo Herzig
Дата:
Сообщение: log file permissions?
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: log file permissions?