Re: Speed comparison to Oracle. Why was this query slower

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Re: Speed comparison to Oracle. Why was this query slower
Дата
Msg-id 20020222172111.G87002-100000@zoraida.natserv.net
обсуждение исходный текст
Ответ на Re: Speed comparison to Oracle. Why was this query slower on pgsql?  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: Speed comparison to Oracle. Why was this query slower on pgsql?
Список pgsql-general
On Sat, 23 Feb 2002, Martijn van Oosterhout wrote:

> On Fri, Feb 22, 2002 at 01:53:40PM -0500, Francisco Reyes wrote:
> > Is Oracle better at aggregate functions?
> > Another point worth mentioning. The Oracle table has 40K records less.
> > Postgresql has 770K, Oracld has 730K.
>
> Posssibly. At the moment postgres will grab all the data from the table,
> sort it, group it and then aggregate. Oracle is probably cleverer and just
> aggregates directly. On that many rows it probably makes a difference.

How could it be done in a more clever fashion?
Or how would something be aggregated "directly"?


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

Предыдущее
От: Juan Jose Comellas
Дата:
Сообщение: Re: game db
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Speed comparison to Oracle. Why was this query slower on pgsql?