| От | Bruno Wolff III |
|---|---|
| Тема | Re: group by |
| Дата | |
| Msg-id | 20031004162348.GA31628@wolff.to обсуждение исходный текст |
| Ответ на | Re: group by (Kathy Zhu <Kathy.Zhu@Sun.COM>) |
| Список | pgsql-general |
On Fri, Oct 03, 2003 at 17:32:22 -0600, Kathy Zhu <Kathy.Zhu@Sun.COM> wrote: > I did a vacuum and got the same result. > I think the problem lies in there is swapping going for groupby when there is a > large number of rows in the table, 5000 in this case. > > I guess I have to use group by with caution. In 7.4 you will probably find the results more compatible. For 7.3 and lower, the first case will use a sort to do a group by. No sort will be done in the second example. In 7.4 the groub by will use the new hash aggregate method and will probably be significantly faster than the second way of doing things.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера