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

Show performance nag if/when summary table reaches a given number of rows? #377

Open
cabrerahector opened this issue Dec 19, 2023 · 0 comments
Assignees

Comments

@cabrerahector
Copy link
Owner

Currently the performance nag is shown to the user whenever the plugin detects that the site has been viewed over 400 times within the last hour or so. This is a good indicator that a site has some traffic but it doesn't cover uses cases like small sites accumulating a lot of views over time.

It might be a good idea to also run a query like the one below to check whether the summary table has reached a number of rows (eg. 1 million) so we can alert users about it:

SELECT
    TABLE_ROWS AS 'rows'
FROM
    information_schema.TABLES
WHERE
    TABLE_NAME = 'wp_popularpostssummary'
AND
    TABLE_SCHEMA = 'database_name_here';
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