You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The query in includes/wc-user-functions.phpwc_customer_bought_product is a performance nightmare on the single product page when a reasonable number of orders exist. I've profiled it eating up 2-3 seconds in the database on a single product that has say, several hundred orders. I haven't investigated whether it can be optimized, or mysql indexes added to fix it, I've just added a custom line to return false; before the query runs, but it would be nice if it could be fixed properly in mainline.
The text was updated successfully, but these errors were encountered:
The query in
includes/wc-user-functions.php
wc_customer_bought_product
is a performance nightmare on the single product page when a reasonable number of orders exist. I've profiled it eating up 2-3 seconds in the database on a single product that has say, several hundred orders. I haven't investigated whether it can be optimized, or mysql indexes added to fix it, I've just added a custom line toreturn false;
before the query runs, but it would be nice if it could be fixed properly in mainline.The text was updated successfully, but these errors were encountered: