We have a large e-commerce website with many products and single layer variation. (Max 40+ Variation Per Product). When the website grow larger, the database is getting out of control.
I tried to use SHOW FULLPROCESSLIST in MYSQL and noticed that whenever a user loads a page, the database will run a command:
UPDATE wp_options SET option_value = \'{\\\”version\\\”:\\\”1620661059\\\”,\\\”0f2f3d7d018e7b4e3837ca503b71b0dc\\\”:{\\\”price\\\”:{\\\”578634\\\”:\\\”0.11\\\”,\\\”578635\\\”:\\\”0.24\\\”,\\\”408022\\\”:\\\”0.24\\\”,\\\”408023\\\”:\\\”0.56\\\”,\\\”408024\\\…
to update the database table. The value is very long and causes the whole website to stop working properly.
Any solution we can solve this issue by tweaker the SQL slightly or something? Any help will be greatly appreciated.