Background of the issue:
We are experiencing very high database load when we enable WPML on our production site hidden link. The hosting company (WP Engine) says that this is related to the following query: SELECT COUNT(*) FROM wp_comments JOIN wp_icl_translations icltr? ON icltr?.element_id = wp_comments.comment_post_ID JOIN wp_posts ON wp_posts.ID = icltr?.element_id AND CONCAT(?, wp_posts.post_type) = icltr?.element_type LEFT JOIN wp_icl_translations icltr_comment ON icltr_comment.element_id = wp_comments.comment_ID AND icltr_comment.element_type = ? WHERE ( comment_approved = ? ) AND icltr?.language_code = ? AND (icltr_comment.language_code IS NULL OR icltr_comment.language_code = icltr?.language_code ) This is causing the database to fall over and take the site down. At the moment we have had to disable WPML.
Symptoms:
High database load causing the site to fall over when WPML is enabled.
Questions:
Can you please advise on what might be causing this?
What can we do to resolve it urgently?
The topic ‘[Closed] Performance’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.