| От | Mark Kirkwood |
|---|---|
| Тема | Re: slow query performance |
| Дата | |
| Msg-id | 3FA2D196.70702@paradise.net.nz обсуждение |
| Ответ на | Re: slow query performance ("Dave Weaver" <davew@wsieurope.com>) |
| Ответы |
Re: slow query performance
|
| Список | pgsql-general |
Dave Weaver wrote: >>- clustering the "obs" table on "station" >> >> > >Sorry, I don't understand what you mean by this - can you explain? > > > Supposing obs_pkey is on (station, valid_time): cluster obs_pkey on obs will re-order the rows in obs based on the index obs_pkey. (This is clustering on 'station' and 'valid_time', to do just station you could use an index on just 'station'). The down side is that the row ordering is slowly lost as rows are updated, so periodic running of the cluster command is needed - this is a pain as it will take a while for 13 million row table. regards Mark
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера