-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: improve get archived workflow query performance during controller estimation. Fixes #13382 #13394
fix: improve get archived workflow query performance during controller estimation. Fixes #13382 #13394
Conversation
867c8ed
to
2b00f0e
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.
This variant is a regression to past behavior and doesn't match suggested solutions. See in-line comment below for more details.
2b00f0e
to
cdc7b51
Compare
cdc7b51
to
fe3085d
Compare
fe3085d
to
45fce7d
Compare
This CI has failed: For
|
Maybe a test flake (although I don't recall that one failing before 🤔), I re-ran that job |
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.
@jiachengxu Could you help review this?
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.
The PR looks good to me! I think this is a reasonable mitigation for controller estimation, and for solving the slow archived workflows for API, JSONB migration or materialized view might improve more.
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.
Have some small stylistic comments below, but otherwise this LGTM.
…r during estimation. Fixes argoproj#13382 Signed-off-by: linzhengen <linzhengen@yahoo.co.jp>
…just below GetWorkflow, error log more match the naming Signed-off-by: linzhengen <linzhengen@yahoo.co.jp>
45fce7d
to
77f08af
Compare
@agilgur5 And the |
These aren't required to pass (yet) so no need this time, can merge without them |
Thanks for fixing this! |
Fixes #13382
Motivation
Modifications
exists
tophase = 'Succeeded'
Verification
SQL Debug Log
EXPLAIN