Searching subscriptions is slow for merchants with a large number of subscriptions #183
Open
2 tasks done
Labels
category: performance
The issue/PR is related to performance.
pr: needs review
type: bug
The issue is a confirmed bug.
Describe the bug
The Subscriptions search in wp-admin → WooCommerce → Subscriptions is very slow for merchants who have a large number of subscriptions. For example, searching through ~30,000 subscriptions can take as much as 30 seconds.
To Reproduce
WCS_Subscription_Data_Store_CPT::search_subscriptions()
.Expected behavior
The search query that is called by
WCS_Subscription_Data_Store_CPT::search_subscriptions()
should take as little time as is reasonably possible.Actual behavior
The search query that is called by
WCS_Subscription_Data_Store_CPT::search_subscriptions()
takes longer than is reasonably possible.Product impact
YES 4398-gh-woocommerce/woocommerce-subscriptions
YES Searching subscriptions is slow for merchants with a large number of subscriptions woocommerce-payments#4695
Additional context
More info provided by @foliovision in PR #182:
The text was updated successfully, but these errors were encountered: