| От | John R Pierce |
|---|---|
| Тема | Re: [GENERAL] Question about paritioning |
| Дата | |
| Msg-id | 75cfa226-d9cf-9fb8-f387-9d27e26acce5@hogranch.com обсуждение |
| Ответ на | [GENERAL] Question about paritioning (Alex Samad <alex@samad.com.au>) |
| Ответы |
Re: [GENERAL] Question about paritioning
|
| Список | pgsql-general |
On 7/26/2017 10:08 PM, Alex Samad wrote:
> I have a large table about 3B rows, that I would like to partition on
> a column called _received which is of type timestamp
>
a good goal is to have no more than about 100 partitions max, and
ideally more like 25.
when we partition on time stamp, we typically do it by the week, as
we're doing 6 month data retention.
IIRC, we're using DATE_TRUNC('week', timestamp)::DATE for use as the
partition label and key.
--
john r pierce, recycling bits in santa cruz
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера