Distinct + Limit

Поиск
Список
Период
Сортировка
От Francois Deliege
Тема Distinct + Limit
Дата
Msg-id 5833589.541.1332880671745.JavaMail.geo-discussion-forums@pbbnv8
обсуждение исходный текст
Список pgsql-performance
Hi group,

I have the following table with millions of rows

CREATE TABLE table1
(
  col1 text,
col1 text,
  doc text
)

select col1 from table1 group by col1 limit 2;
select distinct on (col1) col1 from table1 limit 2;


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

Предыдущее
От: Dave Crooke
Дата:
Сообщение: Re: Linux machine aggressively clearing cache
Следующее
От: Ants Aasma
Дата:
Сообщение: Re: Distinct + Limit