| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера