This PR fixes the above issue by changing how the admin scopes subscriptions tied to a particular variant, instead of having to hunt down the specific line item when filtering them.
This also restructures the query in the view to avoid N+1s. On a store with 100K subscriptions the query and relative map take ~30ms.
Summary
Fixes #274
This PR fixes the above issue by changing how the admin scopes subscriptions tied to a particular variant, instead of having to hunt down the specific line item when filtering them.
This also restructures the query in the view to avoid N+1s. On a store with 100K subscriptions the query and relative map take ~30ms.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed (~cross them out~ if they are not):