-
Notifications
You must be signed in to change notification settings - Fork 265
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
MySQL performance issue with lint command with some tables #1727
Comments
@a8m I tag you as asked on discord 😉 |
jaugustin
changed the title
MySQL performace issue with lint command with some tables
MySQL performance issue with lint command with some tables
Jun 8, 2023
the root issue is from the query here https://github.com/ariga/atlas/blob/master/sql/mysql/inspect.go#L770 I have an explain output
And the related warnings:
|
here is the explain analyse if it can help
|
This is fixed on latest canary version thanks 👏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I hit a performance issue when running the lint command.
I created a repo to reproduce the issue https://github.com/jaugustin/atlas_slow_lint
If I run the
atlas migrate lint --latest 1 --dev-url docker://mysql/8/dev
then it get stuck for 15 minutesThe issue is from a mysql command executed to get tables / foreign keys that get stuck in
checking permissions
for some timeI can try to provide more information if needed
The text was updated successfully, but these errors were encountered: