Re: [SQL] OFFSET impact on Performance???

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: [SQL] OFFSET impact on Performance???
Дата
Msg-id 87651iv289.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: [SQL] OFFSET impact on Performance???  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
Список pgsql-performance
"Merlin Moncure" <merlin.moncure@rcsonline.com> writes:

> what about
> CREATE AGGREGATE array_accum (
>     sfunc = array_append,
>     basetype = anyelement,
>     stype = anyarray,
>     initcond = '{}'
> );

huh, that is faster. It's only 14x slower than the C implementation.

For completeness, here are the fastest times I get after repeating a few times
each:

 13.97 ms     contrib/intagg C implementation
194.76 ms     aggregate using array_append
723.15 ms     aggregate with SQL state function

--
greg

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

Предыдущее
От: Alexandre Leclerc
Дата:
Сообщение: Re: Flattening a kind of 'dynamic' table
Следующее
От: Kevin Brown
Дата:
Сообщение: Re: [SQL] OFFSET impact on Performance???