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

inspect: remove redundant join conditions #701

Merged
merged 2 commits into from
Jan 28, 2019
Merged

Conversation

shlomi-noach
Copy link
Contributor

This is a resubmission of #699 by @twotwotwo, for internal purposes.

twotwotwo and others added 2 commits January 22, 2019 12:26
The TABLE_SCHEMA and TABLE_NAME are already guaranteed to have the same value in COLUMNS and UNIQUES because of the WHEREs in each query. Dropping it from the ON clause makes it complete much faster.

On (at least) MySQL 5.6 installs with thousands of tables, this query completes in a few seconds without the additional join conditions, but takes more than a minute with it.
@shlomi-noach shlomi-noach changed the title Gh ost/patch 1 inspect: remove redundant join conditions Jan 23, 2019
@shlomi-noach shlomi-noach merged commit 0d773f7 into master Jan 28, 2019
@shlomi-noach shlomi-noach deleted the gh-ost/patch-1 branch January 28, 2019 06:26
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.

2 participants