From: | Alec Lazarescu <alecl(at)alecl(dot)com> |
---|---|
To: | Justin <zzzzz(dot)graf(at)gmail(dot)com> |
Cc: | Marc Millas <marc(dot)millas(at)mokadb(dot)com>, Greg Sabino Mullane <htamfids(at)gmail(dot)com>, veem v <veema0000(at)gmail(dot)com>, sud <suds1434(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Partitioning options |
Date: | 2024-02-21 16:26:41 |
Message-ID: | CAE+E=STXc9Nhkj8hmZB9zq0grPWG=oS=sK01YuQSAQGeXAJ5Ag@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi, Justin.
The example link has self-contained DDL to create the partitions (in
flat vs composite mode for comparison) and then making the FK's on
each showing the marked speed difference for the same net number of
partitions (1200 flat vs 80x15 = 1200 composite):
https://www.postgresql.org/message-id/CAE%2BE%3DSQacy6t_3XzCWnY1eiRcNWfz4pp02FER0N7mU_F%2Bo8G_Q%40mail.gmail.com
Alec
On Tue, Feb 20, 2024 at 11:59 AM Justin <zzzzz(dot)graf(at)gmail(dot)com> wrote:
>
>
> On Sun, Feb 18, 2024 at 5:20 PM Alec Lazarescu <alecl(at)alecl(dot)com> wrote:
>>
>> "Would probably look at a nested partitioning"
>>
>> I'm not the original poster, but I have a schema with nested
>> (composite) partitions and I do run into some significant
>> inefficiencies compared to flat partitions in various schema metadata
>> operations (queries to get the list of tables, creating foreign keys,
>> etc.) in tables with 1,000+ total partitions.
>>
>> One example: https://www.postgresql.org/message-id/CAE%2BE%3DSQacy6t_3XzCWnY1eiRcNWfz4pp02FER0N7mU_F%2Bo8G_Q%40mail.gmail.com
>>
>> Alec
>>
>>
>
> Hi Alec,
>
> would need to see the DDL of the partitions and the queries accessing these partitions to have an opinion
>
> Thank you
> Justin
From | Date | Subject | |
---|---|---|---|
Next Message | Vick Khera | 2024-02-21 21:11:30 | How to schema-qualify "IS DISTINCT FROM" on trigger definition? (I created a db that cannot be dump/restored) |
Previous Message | Lok P | 2024-02-21 05:12:04 | Re: Question on Table creation |