Re: [GENERAL] Slow queries on very big (and partitioned) table

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: [GENERAL] Slow queries on very big (and partitioned) table
Дата
Msg-id 3144609e-7dbc-0b77-471e-e13417f8d46a@hogranch.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Slow queries on very big (and partitioned) table  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-general
On 2/20/2017 5:22 AM, Stephen Frost wrote:
> You probably shouldn't be partitioning by day for such a small dataset,
> unless you've only got a few days worth of data that make up those 800m
> records.

agreed.  we do like 6 months retention by weeks, so there's 26 or so
partitions, that is reasonable.

the primary reason for the partitions is to make it easy to drop old
data by pruning a whole partition.



--
john r pierce, recycling bits in santa cruz



В списке pgsql-general по дате отправления:

Предыдущее
От: Steven Winfield
Дата:
Сообщение: Re: R: [GENERAL] Slow queries on very big (and partitioned) table
Следующее
От: Rakesh Kumar
Дата:
Сообщение: [GENERAL] Using xmin and xmax for optimistic locking