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

[v3.0] Remove N+1 from admin users #4421

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jun 14, 2022

Same as #4419 but for v3.0

tvdeyen added 2 commits June 14, 2022 10:47
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 da5aae7 into solidusio:v3.0 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.

3 participants