Re: *very* slow query to summarize data for a month ...
В списке pgsql-performance по дате отправления:
| От | Greg Stark |
|---|---|
| Тема | Re: *very* slow query to summarize data for a month ... |
| Дата | |
| Msg-id | 873ccuk7k5.fsf@stark.dyndns.tv обсуждение исходный текст |
| Ответ на | Re: *very* slow query to summarize data for a month ... ("Marc G. Fournier" <scrappy@postgresql.org>) |
| Ответы |
Re: *very* slow query to summarize data for a month ...
|
| Список | pgsql-performance |
"Marc G. Fournier" <scrappy@postgresql.org> writes: > On Tue, 11 Nov 2003, Greg Stark wrote: > > > Actually you might be able to get the same effect using function indexes > > like: > > > > create index i on traffic_log (month_trunc(runtime), company_id) > > had actually thought of that one ... is it something that is only > available in v7.4? Hum, I thought you could do simple functional indexes like that in 7.3, but perhaps only single-column indexes. In any case, given your situation I would seriously consider putting a "month" integer column on your table anyways. Then your index would be a simple (month, company_id) index. -- greg
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера