Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: QueryCacheManager as injectable service

$
0
0
hi Diego,


At this moment I am reviewing a solution that use Entity Framework for command and queries. The development team had identified several issues before I started my review, and show me the next issues:
  • Some queries in EF are continually evaluated and did not use the QueryCacheManager ( WinDbg show the problem )
  • The Compile time of this queries is potentially high, very large IQueryables with a lot of nodes, unions, joins etc..
After debug the code with a simple test I check that EF use correctly the Query Cache Manager... after some checks I create a custom version of EF with a parametrizable values for number of items, load factor and eviction timer in QueryCacheManager...In this solution, with a lot of tables and many different queries this custom version of EF improve the overall performance because this expensive ( in compilation time ) queries are not evaluated many times...

Really my idea is not change the QueryCacheManager, this work well, the idea is parametrize these values only.

Regards
Unai

Viewing all articles
Browse latest Browse all 1793

Trending Articles



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