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

Fixes #8401: n+1 query on group parameters host edit #1935

Closed
wants to merge 1 commit into from

Conversation

dLobatog
Copy link
Member

Hostgroup tries to eager load the group parameters but there's an error
in the code that renders the eager loading useless.

@domcleal
Copy link
Contributor

domcleal commented Dec 5, 2014

Nice find! Is the same issue present in the global_parameters method on line 141?

The same code is also in the Location and Organization models, so please reapply the fix there too.

Hostgroup tries to eager load the group parameters but there's an error
in the code that renders the eager loading useless.
@dLobatog
Copy link
Member Author

dLobatog commented Dec 5, 2014

@domcleal Done, next on the list.. refactor location.rb/organization.rb

@domcleal
Copy link
Contributor

domcleal commented Dec 5, 2014

Merged as 4cdc045, thanks @elobato!

@domcleal domcleal closed this Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants