[英]Is all the query in Entity framework 6 is already compiled?
I want to optimized my queries in Entity Framework 6.1.3 , so I need to know that whether queries are already CompiledQueries or I need to write them manually as CompiledQuery? 我想在Entity Framework 6.1.3中优化我的查询,所以我需要知道查询是否已经是CompiledQueries还是我需要手动编写它们作为CompiledQuery?
Thanks in advance. 提前致谢。
No, they are not. 不,他们不是。 You'll need to specify that you want to use a CompiledQuery.
您需要指定要使用CompiledQuery。
That said, using a compiled query will only provide a 7% performance improvement. 也就是说,使用编译查询只能提高7%的性能。 If tuning performance of EF really is a major issue for you, I recommend reading the following:
如果EF的调音性能确实是您的主要问题,我建议您阅读以下内容:
https://msdn.microsoft.com/en-us/data/hh949853 https://msdn.microsoft.com/en-us/data/hh949853
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.