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.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
56Posts
204Comments
163Connections
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
- Data EngineerBrook Health Tech · Full time · Australia
- Data EngineerCrown Health Tech · Full time · Australia
- Data EngineerBirch Analytics · Full time · Kingdom of Spain
Commenters (This Week)
nik-13
5 comments
DunimeTech
3 comments
IbrahimSEO
2 comments
Contribute meaningful comments to climb the leaderboard and earn badges!