DEV Community

Discussion on: Explain Lazy and Eager Loading Like I'm Five

Collapse
kayis profile image
K (he/him)

You get math homework on Friday.

Eager loading is when you solve all your math exercises on Friday.

Lazy loading is when you solve all your math exercises right before the teacher checks if you did your homework.

Eager loading has the benefit, that you can simply point to the solutions when asked and don't need to do anything anymore.

Lazy loading has the benefit, that you don't have to do anything if nobody wants your solutions.