Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2.11] Remove N+1 from admin users #4422

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jun 14, 2022

Same as #4419 but for v2.11

The has_many relation is called :orders, not :spree_orders
We preload users orders, but call count in the template.
This will always query the database. Using none? uses
the preloaded collection instead.
@waiting-for-dev waiting-for-dev merged commit 0b70d39 into solidusio:v2.11 Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants