Re: What's a reasonable maximum number for table partitions?

Поиск
Список
Период
Сортировка
От Vick Khera
Тема Re: What's a reasonable maximum number for table partitions?
Дата
Msg-id CALd+dcerGnZRpheSkNV196G7UDHF5+SpTY=Cb-V1Bq=qwibp_w@mail.gmail.com
обсуждение исходный текст
Ответ на What's a reasonable maximum number for table partitions?  (Tim Uckun <timuckun@gmail.com>)
Ответы Re: What's a reasonable maximum number for table partitions?  (Bill Moran <wmoran@potentialtech.com>)
Re: What's a reasonable maximum number for table partitions?  (Tim Uckun <timuckun@gmail.com>)
Список pgsql-general

On Thu, Feb 12, 2015 at 7:44 PM, Tim Uckun <timuckun@gmail.com> wrote:
Does anybody have experience with huge number of partitions if so where did you start running into trouble? 

I use an arbitrary 100-way split for a lot of tracking info. Just modulo 100 on the ID column. I've never had any issues with that. If you can adjust your queries to pick the right partition ahead of time, which I am able to do for many queries, the number of partitions shouldn't matter much. Only rarely do I need to query the primary table.

I don't think your plan for 365 partitions is outrageous on modern large hardware. For 1000 partitions, I don't know. It will depend on how you can optimize your queries before giving them to postgres.

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

Предыдущее
От: David G Johnston
Дата:
Сообщение: Re: infinite recursion detected in rules for relation
Следующее
От: Bill Moran
Дата:
Сообщение: Re: What's a reasonable maximum number for table partitions?