Skip to content

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.

3 participants