Re: SELECT DISTINCT Performance Issue

Поиск
Список
Период
Сортировка
От PFC
Тема Re: SELECT DISTINCT Performance Issue
Дата
Msg-id op.srx5mdsmth1vuj@localhost
обсуждение исходный текст
Ответ на SELECT DISTINCT Performance Issue  (K C Lau <KCLau@attglobal.net>)
Ответы Re: SELECT DISTINCT Performance Issue
Список pgsql-performance

> Previously, we have also tried to use LIMIT 1 instead of DISTINCT, but
> the performance was no better:
> select PlayerID,AtDate from Player where PlayerID='22220' order by
> PlayerID desc, AtDate desc LIMIT 1

    The DISTINCT query will pull out all the rows and keep only one, so the
one with LIMIT should be faster. Can you post explain analyze of the LIMIT
query ?

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

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: Postgresql and Software RAID/LVM
Следующее
От: PFC
Дата:
Сообщение: Re: Need help to decide Mysql vs Postgres