Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem: Reduce icl_translate table size

Solution:
1. Download and activate the WPML Delete Jobs plugin.
2. Visit Tools → WPML Delete jobs
3. You will see a text area prefilled with job IDs, these are 50 suggested job IDs to delete first. These job IDs are the same that you will see in WPML → Translation Management → Jobs. You can uncheck some job IDs in case you don’t want to touch a few pages or posts.
4. Click Delete and wait. Once the content is deleted, you will see a new batch of 50 IDs to delete, and so on until there are no jobs for revision.
5. Finally click on Optimize _icl_translation_status table to reduce the size of icl_translation_status table.
6. Deactivate and remove the cleaning plugin.

Relevant Documentation: https://wpml.org/errata/reducing-size-of-icl_translate_job-icl_translate-and-other-wpml-tables/

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.

Our next available supporter will start replying to tickets in about 6.55 hours from now. Thank you for your understanding.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Faisal Ahammad 1 year, 9 months ago.

Assisted by: Faisal Ahammad.

Author Posts
February 12, 2023 at 5:33 am #13014161

baptisteW-2

While cleaning up my database, I have noticed that two WPML tables were taking 67% of my entire database size!
* icl_translate: 270M
* icl_translation_status: 45M

This usage is way too high for such a small site. What can I do to reduce these two table sizes?

I found this page https://wpml.org/errata/reducing-size-of-icl_translate_job-icl_translate-and-other-wpml-tables/ mentioning a plugin that could help. Is that the case?

February 12, 2023 at 7:45 am #13014353

Faisal Ahammad

Hi there,
Good morning! If you're dealing with a large amount of data in your posts and postmeta tables, and you're using either a page builder or the Gutenberg block editor, the WPML Delete Jobs plugin can help reduce the size of your database.

You may install the plugin from hidden link and follow the guideline mentioned here: https://wpml.org/errata/reducing-size-of-icl_translate_job-icl_translate-and-other-wpml-tables/

⚠️ Important! Please make a full site backup (files and DB) before you proceed with those steps. ⚠️
** If your site is a live site, you might want first to try those procedures in a staging environment or a snapshot of your site on your local server or another server. **

I'm looking forward to hearing back from you.

Warm regards,
Faisal

February 12, 2023 at 9:14 am #13014439

baptisteW-2

Hi

Thanks for the quick answer (on a Sunday!). I have used this plugin and made a backup before and after. It looks like it worked well for the icl_translate table. It was reduced from 270M to 55M, reducing my entire database size by 50%. I have not seen any changes in behavior and checked a few translations.

I am not using any page builder or the block editor, but this plugin still helped!

The icl_translation_status is still 44M after this update, does that sound reasonable or is there still some opportunity for reducing that?

February 12, 2023 at 6:03 pm #13015539

Faisal Ahammad

Hi there,
Good afternoon! I'm delighted to hear that the plugin significantly reduced the size of your icl_translate table - that's fantastic news!

Regarding the icl_translation_status table, it's normal for it to remain larger even after optimization, as this table typically stores information about the status of each translation, such as whether it has been translated, is in progress, etc.

Don't worry about the database optimization for now. If the table size increases further, you can try the plugin again.

In the meantime, please don't hesitate to reach out if you need anything else.

Best regards,
Faisal

February 13, 2023 at 5:01 am #13016723

baptisteW-2

My issue is resolved now. Thank you!

I hope you are going to fix this issue definitely in the future so we don't have to rely on beta plugins to fix it.

February 13, 2023 at 6:18 am #13017043

Faisal Ahammad

Hi,
Great to hear that the issue has been resolved! If you require any additional assistance in the future, please do not hesitate to open a new ticket.

Our team will be more than happy to help you.

Thank you,
Faisal