• Resolved raestanton

    (@raestanton)


    Hi There

    I noticed a spike in MySQL usage on the webhost for this site and raised a ticket with them. Their response was:

    As to the MySQL usage – we are attaching the MySQL slow logs for the last few days. The heaviest query seems to be related to the complianz-gdpr WordPress plugin:

    1. # SHOW TABLE STATUS FROM tregearbpm_wpc99b1eeb90f050b82e1b02c00dd027cc LIKE 'wp_options' # SHOW CREATE TABLE tregearbpm_wpc99b1eeb90f050b82e1b02c00dd027cc.wp_options UPDATE wp_options SET option_value = 'a:3:{s:23:\"cmplz_default_banner_id\";a:2:{s:5:\"value\";s:1:\"1\";s:7:\"expires\";i:1728453279;}s:19:\"cmplz_min_banner_id\";a:2:{s:5:\"value\";s:1:\"1\";s:7:\"expires\";i:1728453280;}s:18:\"page_links_1_en_US\";a:2:{s:5:\"value\";a:1:{s:2:\"eu\";a:2:{s:16:\"cookie-statement\";a:2:{s:5:\"title\";s:13:\"Cookie Policy\";s:3:\"url\";s:37:\"https://tregearbpm.com/cookie-policy/\";}s:17:\"privacy-statement\";a:2:{s:5:\"title\";s:14:\"Privacy Policy\";s:3:\"url\";s:38:\"https://tregearbpm.com/privacy-policy/\";}}}s:7:\"expires\";i:1728450280;}}' WHERE option_name = 'cmplz_transients' # Converted for EXPLAIN # EXPLAIN /*!50100 PARTITIONS*/ select option_value = 'a:3:{s:23:\"cmplz_default_banner_id\";a:2:{s:5:\"value\";s:1:\"1\";s:7:\"expires\";i:1728453279;}s:19:\"cmplz_min_banner_id\";a:2:{s:5:\"value\";s:1:\"1\";s:7:\"expires\";i:1728453280;}s:18:\"page_links_1_en_US\";a:2:{s:5:\"value\";a:1:{s:2:\"eu\";a:2:{s:16:\"cookie-statement\";a:2:{s:5:\"title\";s:13:\"Cookie Policy\";s:3:\"url\";s:37:\"https://tregearbpm.com/cookie-policy/\";}s:17:\"privacy-statement\";a:2:{s:5:\"title\";s:14:\"Privacy Policy\";s:3:\"url\";s:38:\"https://tregearbpm.com/privacy-policy/\";}}}s:7:\"expires\";i:1728450280;}}' from wp_options where option_name = 'cmplz_transients'

    We are not sure whether the plugin has some optimization options, nor how exactly its queries can be optimized. You may want to contact its developers for further assistance.

    Do you have any suggestions of how I can remedy this please?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support antoiub

    (@antoiub)

    Hello @raestanton ,

    Thank you for reaching out.

    The query you mentioned, flagged as “heavy” by the host, is related to an update of cmplz_transients inside the wp_options table due to a Cron job. In this case, the query is very light as it only contains a banner_ID and page_links that are related to the generated documents. So, there’s no need for concern.

    If you’d like, you can modify the Cron job using a plugin like WP Crontrol, but that’s entirely up to you. My personal recommendation would be not to worry about it.
    It could be also that your host has a set threshold that defines when a query can be considered “heavy”.

    I hope this answer helps you to have a clear view of the issue.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.