| От | Sean Davis |
|---|---|
| Тема | Re: indexed aggregates? |
| Дата | |
| Msg-id | 200703261516.38180.sdavis2@mail.nih.gov обсуждение исходный текст |
| Ответ на | indexed aggregates? ("henlin" <henlin@yandex.ru>) |
| Список | pgsql-novice |
On Monday 26 March 2007 14:39, henlin wrote: > hi. > > Is were any way to make aggregates work faster? Like some kind of indexes? > > as for example "SELECT a,sum(b) FROM c GROUP BY a;" > > The only thing come to my mind is tmp tables && triggers && some kind of > functions (not sure, which and how). You could certainly put a trigger on table c that inserts or updates values in another table and then use that for lookups of sums. It wouldn't be a very general solution (you need to know ahead of time what aggregates you want to query), but it might satisfy your needs. Sean
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера