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
4 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.
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.
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
43Posts
165Comments
98Connections
Passionate about building robust and scalable software solutions with a focus on .NET technologies. ... Show morePassionate about building robust and scalable software solutions with a focus on .NET technologies. With extensive experience in leading teams, designing systems, and mentoring developers, I strive to deliver high-quality, efficient, and maintainable code. I share insights, tutorials, and best practices to help others grow in their software engineering journey. Always eager to learn, explore, and contribute to the tech community
https://www.linkedin.com/in/spyros-ponaris-913a6937/ Show less
https://www.linkedin.com/in/spyros-ponaris-913a6937/ Show less
More From Spyros
Related Jobs
- Quality Systems & Data AnalystOshkosh Corporation · Full time · Hagerstown, MD
- Senior Data EngineerZero Hash · Full time · United Kingdom
- Lead Data EngineerLennar Homes · Full time · Irving, TX
Commenters (This Week)
A2CR_MCP
1 comment
peculiarlibrarian
1 comment
dominikj111
1 comment
Contribute meaningful comments to climb the leaderboard and earn badges!