-
Notifications
You must be signed in to change notification settings - Fork 220
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
Closes #6460 Maybe optimize lookups of tables in DB to stop using SHOW TABLES LIKE #6968
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
@wp-media/qa-team @Khadreal to discuss how to validate / test this. wp-rocket/inc/Engine/Preload/Database/Queries/Cache.php Lines 310 to 311 in b898c2a
|
Test plan:
|
@MathieuLamiot
|
Hello hello, I've conducted some tests and some logs of execution time between the old version and new one.
So I confirm that it works as expected. |
Co-authored-by: Rémy Perona <[email protected]>
Description
Changed lookup table query.
Fixes #6460
Type of change
Detailed scenario
With a large site(mostly multisites), the query is run on every page loads and this slows down the page.
More information here https://wp-media.slack.com/archives/C43T1AYMQ/p1709561232039849
Technical description
Changed the query from
show tables
to select with a limit of 1Documentation
Mandatory Checklist
Code validation
Code style