-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Use eager loading to reduce query load on index pages #92
Labels
Comments
Had to add eager loading to solve performance issues with a large set of assets. Here is an example of the altered code for getIndex in the AssetsController. public function getIndex()
|
Closed
snipe
added
the
👩💻 ready for dev
These issues are ready for someone to work on them - take your pick!
label
Nov 4, 2014
snipe
removed
the
👩💻 ready for dev
These issues are ready for someone to work on them - take your pick!
label
Nov 5, 2014
2 tasks
2 tasks
This was referenced Oct 25, 2016
2 tasks
2 tasks
1 task
Closed
2 tasks
2 tasks
2 tasks
Closed
1 task
2 tasks
Open
2 tasks
2 tasks
2 tasks
2 tasks
2 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On any page that is a list of 'things' - which then refers to any associated sub-things - we should eager-load the sub-things.
This should substantially reduce query load by basically performing a JOIN for us.
You'd notice this more on a page that had a large list of 'things' where it was referring to bits of the sub-things on the each line.
The text was updated successfully, but these errors were encountered: