Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

EF Core, first query is slow, how to generate a precompile view to improve performance

$
0
0

Hi,

I am working on webapi 3.1 with entityframework core 3.16. I got about 180 entity that is slow with the first query. I read that precompiled entityframework view can help improve performance. I watched a video,https://www.youtube.com/watch?v=qsm12syxRWs

After watching it, I downloaded EF Core Power Tools and EntityFramework Power Tools in the Extension menu. When I right clicked on my MyModelDbContext.cs, I don't see the "Optimize Entity Model" option. I just see Generate Views which did not generate any file. When I right clicked on the Repository C# Library project, I see EF Core Tools but it has no options about Optimizing the data model. 

How can this be done? Thanks,


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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