Re: Table PARTITION
От | Richard Huxton |
---|---|
Тема | Re: Table PARTITION |
Дата | |
Msg-id | 4255299B.3080101@archonet.com обсуждение исходный текст |
Ответ на | Re: Table PARTITION (Sean Davis <sdavis2@mail.nih.gov>) |
Ответы |
Re: Table PARTITION
|
Список | pgsql-sql |
Sean Davis wrote: > This is a totally selfish question, but IF someone has a few minutes, > could he/she explain why table partitioning is such an important tool? Say you have a large log-table, you could partition it by month. If most queries only search the last month or two, a lot of your partitioned data could be moved to cheaper/slower disks (via tablespaces). After (say) 24 months, you can start dropping the oldest partitions, and this should take place without affecting any other partitions. How you partition your data depends on how you plan to access it. If you don't query your log-tables by date there's not much point in partitioning by date. -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления: