Closed OllieJones closed 6 months ago
This fix is now supported. Read about how to use it here. https://www.plumislandmedia.net/wordpress-plugins/fast-woo-order-lookup/
This plugin is on the plugin repo review queue. So it should be available on the repo sometime within a month or two.
That problem was originally reported here. https://wordpress.org/support/topic/slow-loading-on-order-edit-page/
A performance regression was reported on WooCommerce 8.8.0. https://github.com/woocommerce/woocommerce/issues/47212 . The root cause of the problem is a full-table scan to satisfy this query from the wp_wc_orders_meta table. That can take minutes on stores with lots of orders. Which of course drives store owners crazy. Can't look at customer orders? Well then how do you get your work done?
The bad query.
The query that will be compatible with what goes into 9.0.0, and should go into this plugin immediately.
This is pretty good when the meta_key column has a prefix index. It's GREAT if the prefix index can replaced by a non-prefix index.
There are two fixes scheduled. The one scheduled for 8.9.0 cleans up some logic but does not resolve the performance problem.