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

Don't eager load adjustments in current_order #2069

Conversation

jhawthorn
Copy link
Contributor

@jhawthorn jhawthorn commented Jul 7, 2017

There's no advantage to doing this. We're only loading a single record so there's no N+1 query this is avoiding. We can just wait for the order.adjustments association to be accessed to load these.

There's no advantage to doing this. We're only loading a single record
so there's no N+1 query this is avoiding. We can just wait for the
order.adjustments association to be accessed to load these.
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to come from here without any specific reason. 👍

@gmacdougall gmacdougall merged commit 60ac9ce into solidusio:master Jul 10, 2017
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

5 participants