Re: slow query performance
| От | 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 по дате отправления: