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

Eager load many more things. #2832

Merged
merged 1 commit into from
Oct 28, 2016
Merged

Eager load many more things. #2832

merged 1 commit into from
Oct 28, 2016

Conversation

dmeltzer
Copy link
Contributor

Fixes a lot of n+1 queries in ajax/bootstrap tables requests.

There is one known place that still has a nice n+1, and thats LicensesController@getView. I think it's a laravel bug though--it seems like if the relationship being eager loaded returns "null" then it doesn't think the relationship is eager loaded and tries to load it again. I may file a bug with laravel for that.

@snipe snipe merged commit 3a8edfd into snipe:develop Oct 28, 2016
dmeltzer added a commit to dmeltzer/snipe-it that referenced this pull request Nov 5, 2016
@dmeltzer dmeltzer deleted the eagerload-more branch November 5, 2016 22:53
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.

2 participants