-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Migration took tool long time #17087
Comments
To address the issue of long migration times when updating the embeddings table in Dify, consider the following potential optimizations:
These steps can help reduce the time taken for database migrations. If the issue persists, further investigation into the specific migration script and database performance may be necessary. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
The migration sql with " {provider_column_name} not like '%/%'" make the provider_name index useless |
Self Checks
Dify version
0.15.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The migrations took more than 20 minutes when updating embeddings table with 80 thousand items.
✔️ Expected Behavior
less then 10 minutes
❌ Actual Behavior
it took more than 20 minutes
The text was updated successfully, but these errors were encountered: