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

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: [GENERAL] Slow queries on very big (and partitioned) table
Дата
Msg-id 20170220132241.GJ9812@tamriel.snowman.net
обсуждение исходный текст
Ответ на [GENERAL] Slow queries on very big (and partitioned) table  (Job <Job@colliniconsulting.it>)
Ответы Re: [GENERAL] Slow queries on very big (and partitioned) table  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
Greetings,

* Job (Job@colliniconsulting.it) wrote:
> we have a test machine with Postgresql 9.6.1 an about 800.000.000 record in a table.
> Table is partitioned by day, with indexes on partitioned table.

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.

Having hundreds of partitions leads to slow query planning time.  There
is work happening to improve on this by having declarative partitions
instead of using CHECK constraints and the constrain exclusion
mechanism.

Thanks!

Stephen

Вложения

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

Предыдущее
От: Jaime Soler
Дата:
Сообщение: Re: [GENERAL] Slow queries on very big (and partitioned) table
Следующее
От: Job
Дата:
Сообщение: R: [GENERAL] Slow queries on very big (and partitioned) table