-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
introduces a faster query to tuple GC #1859
Conversation
I was investigating if
I ran the query with
|
c167656
to
3e62f68
Compare
3e62f68
to
c4a4b44
Compare
@vroldanbet Is there a test we can add for GC along a partitioned table to ensure the use of the table ID fixes this potential issue? |
We cannot control What the docs say about
Testing a scenario where two different relationships to be GCed have the same
My interpretation of the document is that |
we've noticed that even after #1550 was introduced and made the nested GC SELECT query faster, deletions are still causing spikes in postgres and Aurora instances. The proposed query seemed 1 order of magnitude less cost that the current query on a test PG 15.6 with 5M dead tuples and 5M alive tuples.
c4a4b44
to
9f45855
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
we've noticed that even after #1550 was introduced and made the nested GC SELECT query faster, deletions are still causing spikes in postgres
and Aurora instances.
The proposed query seemed 1 order of magnitude less cost that the current query on a test PG 15.6 with 5M dead tuples and 5M alive tuples.
Before
After