Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - -
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Christopher Amirian 1 week, 5 days ago.

Assisted by: Christopher Amirian.

Author Posts
April 17, 2026 at 2:12 pm #17977079

regineR-2

Hello WPML Support Team,

We are currently experiencing performance issues related to slow database queries generated by the WPML plugin. These queries appear to significantly impact our server’s CPU utilization and overall site performance.

Below are the sample queries identified as slow:
Query 1 (Posts Translation Lookup):
SELECT wpml_translations.translation_id,
wpml_translations.element_id,
wpml_translations.language_code,
wpml_translations.source_language_code,
wpml_translations.trid,
wpml_translations.element_type
FROM wp_icl_translations wpml_translations
JOIN wp_posts p
ON wpml_translations.element_id = p.ID
AND wpml_translations.element_type = CONCAT(?, p.post_type)
JOIN wp_icl_translations tridt
ON tridt.element_type = wpml_translations.element_type
AND tridt.trid = wpml_translations.trid
WHERE tridt.element_id IN (...)

Query 2 (Taxonomy Translation Lookup):
SELECT wpml_translations.translation_id,
wpml_translations.element_id,
wpml_translations.language_code,
wpml_translations.source_language_code,
wpml_translations.trid,
wpml_translations.element_type
FROM wp_icl_translations wpml_translations
JOIN wp_term_taxonomy tax
ON wpml_translations.element_id = tax.term_taxonomy_id
AND wpml_translations.element_type = CONCAT(?, tax.taxonomy)
JOIN wp_icl_translations tridt
ON tridt.element_type = wpml_translations.element_type
AND tridt.trid = wpml_translations.trid
WHERE tridt.element_id IN (...)

Observed Behavior:
These queries are frequently executed and contribute to high CPU usage.
CPU utilization increases significantly when WPML-related features are active.
Queries involve multiple joins and dynamic CONCAT() conditions, which may be affecting indexing efficiency.

We would like to ask for your assistance in:
Identifying the root cause of these slow queries
Recommending optimizations (indexes, query improvements, or WPML settings)
Advising if this is a known issue or if there are patches/updates available

Environment Details:
Hosting: Google Cloud Platform (GCP)
OS/Image: Debian 11 (bullseye)
Machine Type: e2-standard-8 (8 vCPUs, 32 GB Memory)
CPU Platform: Intel Broadwell
Disk: 10GB (Balanced persistent disk)
Zone: asia-southeast1-a

Please let us know if you need additional logs, query traces, or access details for further investigation.

Thank you for your support.

April 19, 2026 at 10:53 am #17978666

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hello and welcome to WPML support.

There are a few points that you need to handle first before going for the points you have mentioned.

[] - Update WPML and WPML addons to the latest version. For now, you use an old version of WPML. There are a lot of performance improvements released in new versions.

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Go to "WordPress Dashboard > Plugins > Add new > Commercial (tab)".
- Click the "Check for Updates" button.
- Update WPML and its addons there.

For more information:
https://wpml.org/faq/install-wpml/#automated-updates

After that, please check the steps mentioned below:

[ ] - Consider using the plugin Index WP MySQL For Speed (https://wordpress.org/plugins/index-wp-mysql-for-speed/). WordPress table indexes are not optimised, and this plugin updates the table indexes to improve performance.

[ ] - Don't have debugging plugins like Query Monitor active in production, they add overhead. (Likewise make sure Xdebug is not active on your production server.) Review your list of plugins more generally to ensure you are only using plugins that are actually needed.

Please perform the steps above and see if it has an effect on the performance.

Thanks.