Performance improvement – Superfluous slow query on Admin
-
Hi team
I have found a performance issue that impacts the orders admin page on large sites.
Every time the orders screen is loaded, the plugin calls process_capture_charge_bulk_order_action() which in turn calls _get_list_table( ‘WP_Posts_List_Table’ ); to get the current action. This is a very slow query on large sites.
https://i.imgur.com/TjvWCia.jpg
The function also bails if many other less expensive conditions are not met, eg. the check for order IDs being in the POST.
Would it be possible for you to modify the order of the checks so that it bails on the less expensive conditions first and therefore avoids the expensive query if there are no charges to capture?
This would speed up the life of site admins/users quite a lot 🙂
Thanks,
Jason
- The topic ‘Performance improvement – Superfluous slow query on Admin’ is closed to new replies.