-
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: further optimize archive workflow listing. Fixes #13601 #13819
base: main
Are you sure you want to change the base?
Changes from all commits
fc844b3
3ea4b94
6a90a9b
01bbc41
49bae38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -269,6 +269,12 @@ func (m migrate) Exec(ctx context.Context) (err error) { | |
noop{}, | ||
ansiSQLChange(`alter table argo_archived_workflows alter column workflow set data type jsonb using workflow::jsonb`), | ||
), | ||
// change argo_archived_workflows_i4 index to include clustername so MySQL uses it for listing archived workflows. #13601 | ||
ternary(dbType == MySQL, | ||
ansiSQLChange(`drop index argo_archived_workflows_i4 on argo_archived_workflows`), | ||
ansiSQLChange(`drop index argo_archived_workflows_i4`), | ||
), | ||
ansiSQLChange(`create index argo_archived_workflows_i4 on argo_archived_workflows (clustername, startedat)`), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how quick does this run? quick enough to include in a patch version? i.e. to cherry-pick into 3.5 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very quickly. Tested after populating my DB with 100,000 rows, all associated with the same MySQL:
PostgreSQL:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dope, great work again! |
||
} { | ||
err := m.applyChange(changeSchemaVersion, change) | ||
if err != nil { | ||
|
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 is so benchstat gives confidence intervals. Without this, it'll show the message
¹ need >= 6 samples for confidence interval at level 0.95