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

Improve powa_wait_sampling_history query #256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marco44
Copy link
Contributor

@marco44 marco44 commented Jan 28, 2025

There is a bug: the result is still ok, but it's a performance issue

The left boundary query for powa_base_waitdata_detailed_db on the interval is wrong: the matching interval should be from/from (see other queries that do the same manipulation). So we're doing twice the full interval of the query, once for nothing (and we redo the comparisons on the unnested records on this large one, which takes lots of cpu)

There is a bug: the result is still ok, but it's a performance isuse

The left boundary query for powa_base_waitdata_detailed_db on the
interval is wrong: the matching interval should be from/from (see other
queries that do the same manipulation)
@marco44 marco44 requested a review from rjuju January 28, 2025 16:05
@marco44 marco44 self-assigned this Jan 28, 2025
@pgiraud
Copy link
Member

pgiraud commented Jan 28, 2025

I don't think the format errors detected in the CI are yours. I'll have a look tomorrow.

@rjuju
Copy link
Member

rjuju commented Jan 29, 2025

FWIW I had a quick look and didn't see any similar problem in other queries.

@pgiraud could the ruff check shows the diff rather than saying "something would be changed"? It's not super useful as is :/

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.

3 participants