Query Optimization with Indexes – WordPress
I am needing some assistance on optimizing this WordPress/WooCommerce query: SELECT p.ID AS order_id ,DATE(p.post_date) AS order_date ,SUBSTR(comment_content,17) AS csr ,SUBSTR(p.post_status,4) AS order_status ,UCASE(CONCAT((SELECT wp_postmeta.meta_value FROM wp_postmeta WHERE meta_key = '_billing_first_name' and wp_postmeta.post_id = p.ID),' ',(SELECT wp_postmeta.meta_value FROM wp_postmeta WHERE…