Someone gives you a box of candies.
Lazy loading: you're hungry, you know where the box is, you open it and eat all the candies, you close the box
Eager loading: you open the box, you put all the candies in your mouth, you close the box and when you're actually hungry you start eating them
candies = resource box = connection mouth = memory eating = resource usage
Hopefully you only get a mouthful of candies, because if they are too many you can't fit them in your mouth so eager loading won't work and you'll end up with an issue :-D
I can't seem to get passed the "put all candies in mouth" and then NOT eating them immediately :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Someone gives you a box of candies.
Lazy loading: you're hungry, you know where the box is, you open it and eat all the candies, you close the box
Eager loading: you open the box, you put all the candies in your mouth, you close the box and when you're actually hungry you start eating them
candies = resource
box = connection
mouth = memory
eating = resource usage
Hopefully you only get a mouthful of candies, because if they are too many you can't fit them in your mouth so eager loading won't work and you'll end up with an issue :-D
I can't seem to get passed the "put all candies in mouth" and then NOT eating them immediately :)