Re: count(*) performance improvement ideas

Поиск
Список
Период
Сортировка
От Mark Mielke
Тема Re: count(*) performance improvement ideas
Дата
Msg-id 47D81F53.1000001@mark.mielke.cc
обсуждение исходный текст
Ответ на Re: count(*) performance improvement ideas  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark wrote:
> In an ideal world I would love to be able to do something like:
>
> CREATE MATERIALIZED VIEW foo AS (select count(*) from bar) WITH INCREMENTAL UPDATES;
>
> and have that automatically create both a heap to store the count and another
> to store the incremental changes. To do this would require some magic to know
> what "incremental changes" means for each aggregate where it's meaningful
> though.
>
> Then it would require some magic in the optimizer to recognize when piece of
> the query can be satisfied by a materialized view.
>   

Hehe... +5 if you think it can be done in the next 12 - 24 months. :-)

Cheers,
mark

-- 
Mark Mielke <mark@mielke.cc>



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Re: TODO-list on wiki (was: TODO update about SQLSTATE to PGconn)
Следующее
От: Greg Smith
Дата:
Сообщение: Re: [pgsql-www] Move the developers wiki?