Re: Design question about partitioning order information across tables
В списке pgsql-general по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: Design question about partitioning order information across tables |
| Дата | |
| Msg-id | 1256209942.13273.3.camel@fsopti579.F-Secure.com обсуждение |
| Ответ на | Design question about partitioning order information across tables (Mike Christensen <mike@kitchenpc.com>) |
| Список | pgsql-general |
On Thu, 2009-10-22 at 03:13 -0700, Mike Christensen wrote: > It has occurred to me that there might be some advantages of creating > a separate table called "OrderArchive" which would be used to store > order states 3 or 4. This would allow me to get rid of an index on > order state as well as probably use different caching techniques on > each table. It would also keep the Orders table super light and fast > with only very volatile information. The lightweight solution is to make your indexes partial indexes that omit order states 3 and 4. If most of your queries use indexes, this might be sufficient. The more complex solution is partitioning, which, as you have found out, requires some manual labor and setting up some triggers. But those are pretty much the standard solutions.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера