Optimizing Sum, Count, Min, Max and Average with LINQ
- 📅
- 📝 498 words
- 🕙 3 minutes
- 📦 .NET
- 🏷️ Elasticsearch, LINQ, Entity Framework, C#
- 💬 2 responses
LINQ is a great tool for C# programmers letting you use familiar syntax with a variety of back-end systems without having to learn another language or paradigm for many query operations.
Ensuring that the queries still perform well can be a bit of a chore and one set that fails quite badly are the aggregate operations when you want more than one.