Background of the issue:
I am trying to manage my WordPress site and noticed that WPML tables in the database are greater than 3 GB. I need someone to look into this issue.
Symptoms:
The WPML tables in the database are unexpectedly large, exceeding 3 GB.
Questions:
Why are the WPML tables so large?
How can I reduce the size of the WPML tables?
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
Hello,
Please check this video out: hidden link
The reason why everything is so big is because you already had a big database, then you added WooCommerce and a Page builder on top of it.
These plugins have a LOT of things that are added to the database that need to be checked for translations or that actually contain translations, so naturally that will "encapsulate" the results into a handful of our tables making it look enormous.
If you check the post and metadata tables alone you'll see they are like 3 times our tables, and that means that in general you'll need 11x the content from those 2 tables alone since they need to be available for each language that you have.
I checked many things and I think that by deleting orphan content and maybe reducing the tables when you can, WPML's table will eventually shrink as well 🙂
In the video I give you a few tips that are not WPML related but that could help you get a leaner database.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
Awesome!
Let us know how it goes. I suspect that after the tables have been optimized we might have to do something to reduce ours as well, but please do let us know when the others are ok and what's the status then so we can understand what to do next.