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

oc_files_metadata migration from JSON to TEXT fields takes long on large instances #43571

Closed
juliusknorr opened this issue Feb 14, 2024 · 1 comment

Comments

@juliusknorr
Copy link
Member

#37146 introduced a migration which on large instances can take hours to complete. We need to find a different approach to support migration of those instances.

We could try to find an option to migrate those values in a background job and only drop the old column afterwards but would need to handle this gracefully in code that gets the content. Another option could be to just drop the table and recreate it, but that would require that any data in it can be scanned again.

@artonge @sorbaugh

@artonge
Copy link
Contributor

artonge commented Feb 14, 2024

The background job sounds good.
FYI, another migration will be necessary for 28, for which the background job approach has been used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants