Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: OData [Queryable] should avoid AsQueryable where possible [374]

$
0
0
[Performance] When the OData [Queryable] logic composes the query, it currently converts simple IEnumerable's to IQueryable using Enumerable.AsQueryable() when building the query expression. But performance tests have shown an expression like 'customers.where()" runs 10x faster than "customers.AsQueryable().where()" when 'customers' is a simple IEnumerable<Customer>.

If the controller action really did return a simple IEnumerable, the query execution logic should respect that and avoid converting using AsQueryable() unnecessarily. This will benefit primarily LinqToObjects() applications

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>