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

Optimize log query #312

Closed
bonny opened this issue Sep 1, 2022 · 1 comment
Closed

Optimize log query #312

bonny opened this issue Sep 1, 2022 · 1 comment

Comments

@bonny
Copy link
Owner

bonny commented Sep 1, 2022

Some things to consider:

Remove the usage of SQL_CALC_FOUND_ROWS. Many posts suggest that it's faster to run two queries instead.
Also, since MySQL 8.0.17 SQL_CALC_FOUND_ROWS and found_rows() are deprecated.

References:

Also, when checking for new rows, do the full query need to run, could we not only use a subset of the query?

@bonny
Copy link
Owner Author

bonny commented Apr 28, 2023

Related issue in WordPress trac:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant