I'm reading the book Programming Entity Framework: DbContext
and I just read the chapter on the three data loading types:
- Lazy loading (default)
- Eager loading
- Explicit loading
Now I'm asking myself which data loading is better in which situation. A concrete comparison would be nice! I haven't found any.
For example, I'm using default lazy loading on a module for a client. This module deals with sales reps and imply these related tables:
- Reps
- Reps_Zones
- Reps_Prerequisites
- Users
- Reps_Languages
- etc.
On the module, I use all these tables to dispatch appointments (about 150 appointments to 50 reps at a time), but it's slow. Would using a different loading strategy really improve the performances?