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

BugFix: Enable the migration to run without always recreating an index #98

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

bjpirt
Copy link
Contributor

@bjpirt bjpirt commented Mar 4, 2024

Pull Request type

  • Bugfix

Changes in this PR

This PR got merged before I'd had chance to check how the migration worked in a full database - there was an issue in that it was dropping an index and then recreating it. In a table with lots of records this can take too long to run and in our case was causing the Conductor instances to be marked as unhealthy and restarted.

By using a different name for the index, it is possible to make the changes manually if you have lots of data in your table and then when you deploy the migration will be instantaneous because of IF NOT EXISTS

@bjpirt bjpirt changed the title Enable the migration to run without always recreating an index BugFix: Enable the migration to run without always recreating an index Mar 4, 2024
@v1r3n v1r3n merged commit 26af4cb into conductor-oss:main Mar 4, 2024
2 checks passed
denniscodes pushed a commit to denniscodes-oss/conductor that referenced this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants