-
Notifications
You must be signed in to change notification settings - Fork 101
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
CANTINA-852: do not alter meta_key index for large tables #2893
base: develop
Are you sure you want to change the base?
Conversation
To add the index to a large table: ALTER TABLE wp_postmeta LOCK=NONE, ALGORITHM=NOCOPY, ADD KEY vip_meta_key_value (meta_key(191), meta_value(100));
ALTER TABLE wp_postmeta LOCK=NONE, ALGORITHM=NOCOPY, DROP KEY meta_key, ADD KEY meta_key (meta_key(191), meta_value(100));
ALTER TABLE wp_postmeta LOCK=NONE, ALGORITHM=NOCOPY, DROP KEY vip_meta_key_value; |
Codecov Report
@@ Coverage Diff @@
## develop #2893 +/- ##
==========================================
Coverage 34.62% 34.62%
Complexity 3603 3603
==========================================
Files 216 216
Lines 13920 13920
==========================================
Hits 4820 4820
Misses 9100 9100 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Kudos, SonarCloud Quality Gate passed!
|
529fa93
to
1ac9637
Compare
This pull request has been marked stale because it has been open for 60 days with no activity. If there is no activity within 7 days, it will be closed. This is an automation to keep pull requests manageable and actionable and is not a comment on the quality of this pull request nor on the work done so far. Closed PRs are still valuable to the project and their branches are preserved. |
Kudos, SonarCloud Quality Gate passed!
|
deded3c
to
b235946
Compare
This pull request has been marked stale because it has been open for 60 days with no activity. If there is no activity within 7 days, it will be closed. This is an automation to keep pull requests manageable and actionable and is not a comment on the quality of this pull request nor on the work done so far. Closed PRs are still valuable to the project and their branches are preserved. |
Kudos, SonarCloud Quality Gate passed!
|
Check the size of the
wp_postmeta
table before attempting to modify themeta_key
index.