Re: select max(field) from table much faster with a group by clause?

Поиск
Список
Период
Сортировка
От Palle Girgensohn
Тема Re: select max(field) from table much faster with a group by clause?
Дата
Msg-id 16563C7D831BD7B32DFBDDEC@rambutan.pingpong.net
обсуждение исходный текст
Ответ на Re: select max(field) from table much faster with a group by clause?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: select max(field) from table much faster with a group by clause?
Список pgsql-performance

--On torsdag, november 01, 2007 11.06.57 -0400 Tom Lane <tgl@sss.pgh.pa.us>
wrote:

> Palle Girgensohn <girgen@pingpong.net> writes:
>> Unfortunately, altering statistics doesn't help. I see no difference
>> when  altering the value from 10 (default) to 100, 1000 or 100000. :-(
>
> Um, you did re-ANALYZE the table after changing the setting?

alter table login alter userid SET statistics 1000;
vacuum analyze login;


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: select max(field) from table much faster with a group by clause?
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: select max(field) from table much faster with a group by clause?