Eager Loading vs Lazy Loading in MVC pattern

I am describing basic difference between Eager Loading vs Lazy loading.

 Eager Loading :1 .Resource loading.
   2. Since eager fetching load all relationship , it's a big  performance hog.
   3. Eager fetching makes for easier programming , since less code is required.

 Lazy loading :   1. Time consuming.  
   2. Lazy fetching doesn't load any relationship unless told to, which lead to better                                       performance.
   3. Lazy loading could lead to bugs if entire system isn't
          properly tested.

Comments