great breakdown of EF Core loading strategies! Appreciate the effort in comparing them. Quick question—when working with large datasets, is Projection (Select) always the best choice, or can Eager Loading still be useful in some cases? I love the references you always provide.... :-)
EF Core: Lazy Loading, Eager Loading, and Loading Data on Demand
SpyrosLeader
posted
3 min read
0 Comments
Spyros
•
Thanks! I really appreciate that.
Using projection (Select) is usually the best option for large datasets because it only loads the data you need. This helps save memory and improves performance.
However, eager loading can still be useful when you know you will need related data. It helps reduce multiple queries, especially when working with batch processing or avoiding the N+1 problem.
The best choice depends on the situation. If you only need a few fields for a list, projection is better. But if you are working with a smaller dataset or need to load related data, eager loading can also be a good option.
What do you think? Have you used one of these methods in a real project?
Using projection (Select) is usually the best option for large datasets because it only loads the data you need. This helps save memory and improves performance.
However, eager loading can still be useful when you know you will need related data. It helps reduce multiple queries, especially when working with batch processing or avoiding the N+1 problem.
The best choice depends on the situation. If you only need a few fields for a list, projection is better. But if you are working with a smaller dataset or need to load related data, eager loading can also be a good option.
What do you think? Have you used one of these methods in a real project?
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Refund
- Early Builders
chevron_left
More From Spyros
Related Jobs
- Data Analyst/ Data Engineer IIIUIC Government Services and the Bowhead Family of Companies · Full time · Andrews Air Force Base, MD
- Data AnalystWORKSIMPLI SOFTWARE LLC · Full time · Puerto Rico
- Director of Software Engineering (Data Engineering)Maximus · Full time · Springfield, MO
Commenters (This Week)
lucyb0207
7 comments
marcosomma
1 comment
Pocket Portfolioverified
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!