Skip to content

Conversation

@geokat
Copy link
Contributor

@geokat geokat commented Nov 24, 2025

closes #20899

This is in response to a migration in v2.27 that takes very long on deployments with large api_keys tables.

NOTE: The optimization causes the up migration to delete old data (keys that expired more than 7 days ago). The down migration won't resurrect the deleted data.

@geokat geokat requested a review from ThomasK33 November 24, 2025 19:45
@geokat geokat requested a review from Emyrk November 24, 2025 19:45
@coder coder deleted a comment from github-actions bot Nov 24, 2025
@coder coder deleted a comment from github-actions bot Nov 24, 2025
@geokat geokat requested a review from Emyrk November 24, 2025 23:33
@coder coder deleted a comment from github-actions bot Nov 25, 2025
@geokat geokat marked this pull request as ready for review November 25, 2025 00:53
@coder coder deleted a comment from github-actions bot Nov 25, 2025
@github-actions
Copy link

github-actions bot commented Nov 25, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@geokat
Copy link
Contributor Author

geokat commented Nov 25, 2025

I have read the CLA Document and I hereby sign the CLA

cdrci2 added a commit to coder/cla that referenced this pull request Nov 25, 2025
@geokat geokat force-pushed the geokat/20899-optimize-migration-371 branch from 5f4307d to 47bba5b Compare November 25, 2025 19:14
Copy link
Member

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! I'll stamp after a meeting about this Wednesday morning CST

Copy link
Member

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just blocking a merge for now. Will stamp again

@dannykopping dannykopping requested a review from Emyrk November 26, 2025 03:23
@Emyrk Emyrk merged commit a926157 into main Nov 26, 2025
30 checks passed
@Emyrk Emyrk deleted the geokat/20899-optimize-migration-371 branch November 26, 2025 03:45
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2025
@Emyrk Emyrk added cherry-pick/v2.29 Needs to be cherry-picked to the 2.29 release branch and removed cherry-pick/v2.29 Needs to be cherry-picked to the 2.29 release branch labels Nov 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize migration 371, very slow on databases with large amount of api_keys

4 participants