fix: improve get archived workflow query performance during controller estimation. Fixes #13382#13394
Conversation
867c8ed to
2b00f0e
Compare
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 |
terrytangyuan
left a comment
There was a problem hiding this comment.
@jiachengxu Could you help review this?
jiachengxu
left a comment
There was a problem hiding this comment.
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.
agilgur5
left a comment
There was a problem hiding this comment.
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
existstophase = 'Succeeded'Verification
SQL Debug Log
EXPLAIN