1045615 | user_upp | localhost | user_upp | Query | 1105| Storing result in query cache | SELECT postmeta.post_id FROM wp_bij_postmeta as postmeta
LEFT JOIN wp_bij_postmeta as postmeta_2 ON postmeta.post_id = postmeta_2.post_id
LEFT JOIN wp_bij_postmeta as postmeta_3 ON postmeta.post_id = postmeta_3.post_id
WHERE postmeta.meta_key = '_sale_price_dates_from'
AND postmeta_2.meta_key = '_price'
AND postmeta_3.meta_key = '_sale_price'
AND postmeta.meta_value > 0
AND postmeta.meta_value < '1566747377'
AND postmeta_2.meta_value != postmeta_3.meta_value | 0.000 |
| 1046598 | root | localhost | NULL | Query | 0 | Init | show full processlist
and server resource usage is high, how can i solved this issue?
]]>Review these help guides with some useful optimization tips:
https://www.wpbeginner.com/wordpress-performance-speed/
https://wpengine.com/blog/site-speed-make-wordpress-lightning-fast/
Obviously this is a major data restructure. For any decent amount of data, you’ll need a custom script to move the data. And of course any current code that uses get_post_meta()
for such data will need to be rewritten.