From: | Jesper Pedersen <jesper(dot)pedersen(at)redhat(dot)com> |
---|---|
To: | David Rowley <david(dot)rowley(at)2ndquadrant(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Speeding up INSERTs and UPDATEs to partitioned tables |
Date: | 2018-07-05 13:18:41 |
Message-ID: | bc12ab15-2210-2c91-f6bb-5df35390ce3a@redhat.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi David,
On 06/22/2018 02:28 AM, David Rowley wrote:
> I've attached 2 patches:
>
> 0001: implements items 1-6
> 0002: Is not intended for commit. It just a demo of where we could get
> the performance if we were smarter about locking partitions. I've just
> included this to show 0001's worth.
>
I did some tests with a 64 hash partition setup, and see a speedup for
INSERT / UPDATE scenarios.
> I don't want to discuss the locking on this thread. That discussion
> will detract from discussing what I'm proposing here... Which is not
> to change anything relating to locks. I'm still working on that and
> will post elsewhere.
With 0002 INSERTs get close to the TPS of the non-partitioned case.
However, UPDATEs doesn't see the same speedup. But, as you said, a
discussion for another thread.
Best regards,
Jesper
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Korotkov | 2018-07-05 13:23:40 | Re: Pluggable Storage - Andres's take |
Previous Message | Abi KR | 2018-07-05 13:16:26 | Regarding shared_preload_libraries (postgresql.conf file) |