-
Notifications
You must be signed in to change notification settings - Fork 26
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
Optimize SQL Queries for image counting and statistics #937
Comments
Scope a solution ✅For For imagify-plugin/inc/functions/admin-stats.php Lines 312 to 322 in e046686
Changed the Order by Cast and inner join to exist.
[Update] |
Thanks @Khadreal, May I ask, Do u think this change will enhance the query time? did u do any tests to make sure that this will help? if yes, plz share them so we all can discuss about the best approach here. |
@wordpressfan I have updated the grooming with that |
LGTM for a quick fix for now. |
Co-authored-by: WordPressFan <[email protected]>
Is your feature request related to a problem? Please describe.
Slow queries can some times cause time out on affected pages. see here
Describe the solution you'd like
Optimize the SQL Queries for the image counting and statistics
imagify-plugin/inc/functions/admin-stats.php
Line 12 in e046686
imagify-plugin/inc/functions/admin-stats.php
Line 70 in e046686
imagify-plugin/inc/functions/admin-stats.php
Line 121 in e046686
imagify-plugin/inc/functions/admin-stats.php
Line 233 in e046686
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: