Skip to content
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

Remove not necessary joins on powa_statements #259

Merged
merged 1 commit into from
Feb 8, 2025
Merged

Conversation

marco44
Copy link
Contributor

@marco44 marco44 commented Jan 29, 2025

After discussion with @rjuju , these IN are not necessary, they may even be harmful.

As they use CPU cycles, let's remove them

@marco44 marco44 requested a review from rjuju January 29, 2025 12:24
@marco44 marco44 self-assigned this Jan 29, 2025
@marco44 marco44 force-pushed the remove_unnecessary_IN branch from f0c6914 to 196aa29 Compare January 29, 2025 12:25
@marco44 marco44 force-pushed the remove_unnecessary_IN branch from 196aa29 to cb5e529 Compare February 7, 2025 14:59
@rjuju
Copy link
Member

rjuju commented Feb 8, 2025

agreed. Those are harmful in the sense that if a new queryid is generated and evicted before a snapshot happens, any associated wait even would then be filtered. This is a really unlikely scenario, and if it does happen the pg_stat_statements overhead is probably so big that just disabling it should double your performance so you won't end up using powa anyway.

@rjuju rjuju merged commit 4fe0621 into master Feb 8, 2025
2 checks passed
@rjuju rjuju deleted the remove_unnecessary_IN branch February 8, 2025 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants