Re: pg12 partitions show bad performance vs pg96

Поиск
Список
Период
Сортировка
От Mariel Cherkassky
Тема Re: pg12 partitions show bad performance vs pg96
Дата
Msg-id CA+t6e1mom1LeGYazaorrHtU3=yCRVjqBRVP0jCumKX2x-fqf7w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg12 partitions show bad performance vs pg96  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-performance

Also, it's not required, but I think a typical partitioning schema would have
an index on the column being partitioned.  I see you have an index on
iot_data(metadata,lower(data)), so I still wonder whether you'd have better
results partitioned on metadata, or otherwise maybe adding an index on
"device".  But I don't know what your typical queries are.

I understood now why u suggested an index on the partition column. It depends on how many distinct values of the partition column I'll have in that partition.
Thanks for the suggestion , good idea !

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

Предыдущее
От: Mariel Cherkassky
Дата:
Сообщение: Re: pg12 partitions show bad performance vs pg96
Следующее
От: David Rowley
Дата:
Сообщение: Re: pg12 partitions show bad performance vs pg96