Re: multicolumn partitioning help

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: multicolumn partitioning help
Дата
Msg-id 4ab9371f1eb13334fe5cece7e788d9c8d5be08f6.camel@cybertec.at
обсуждение исходный текст
Ответ на multicolumn partitioning help  (James Robertson <james@jsrobertson.net>)
Список pgsql-performance
On Tue, 2023-03-14 at 19:33 -0400, James Robertson wrote:
> Laurenz your solution is how I thought I would work around my (lack of) understanding
> of partitioning. (nested partitions).
> I was hesitant because I didn't know what sort of performance problems I would create for myself.
>
> [...] more performance [...]

If you are thinking of subpartitioning primarily in terms of boosting performance,
you should know that you only get performance benefits from partitioning with
very special queries that effectively have to be designed together with the
partitioning strategy.  Other statements typically become somewhat slower
through partitioning.

So it is really impossible to discuss performance benefits without knowing
the exact query.  It may be best if you build a play database with realistic amounts
of test data and use EXPLAIN and EXPLAIN (ANALYZE) to see the effects that
partitioning has on your queries.

Yours,
Laurenz Albe



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

Предыдущее
От: James Robertson
Дата:
Сообщение: Re: multicolumn partitioning help
Следующее
От: David Rowley
Дата:
Сообщение: Re: multicolumn partitioning help