Tools and techniques to optimize a LINQ to SQL query(优化 LINQ to SQL 查询的工具和技术)
问题描述
我有几个 LINQ to SQL 查询,我觉得它们需要花费很多时间.我可以使用哪些工具和技术来首先找出:
I have a couple of LINQ to SQL queries that I feel take a lot of time. What tool and techniques can I use to first find out:
- 他们需要多长时间,如果有改进的空间?
- 找出我可以改变什么并轻松测试那些更改是否有效?
- How long they take and if there is room for improvement?
- Find out what I can change and easily test if those changes are effective?
工具、技术和阅读资源都将受到赞赏(ergo upvoted ;))
Both tools, techniques and reading resources would be appreciated (ergo up-voted ;))
推荐答案
我刚刚参加了 LINQ 实战.他在博客上介绍了所有工具.以下是与您的问题相关的问题,但他的帖子列出了其他值得研究的好东西.
I just attended a LINQ Tools presentation at a recent codecamp event given by Jim Wooley, one of the authors of LINQ In Action. He blogged about all the tools. Here are the ones that relate to your question, but his post lists other goodies to look into.
SQL Server Profiler ($$$)- SQL Management Studio 的一部分.
SQL Server Profiler ($$$) - part of the SQL Management Studio.
Huagati LINQ to SQL Profiler($$$,45 天试用期)- 扩展了 Context.Log 功能的分析器.包括性能和查询的调用堆栈,超出了您使用 SQL Server Profiler 所能获得的范围.
Huagati LINQ to SQL Profiler ($$$, 45-day trial) - Profiler which extends the Context.Log functionality. Includes performance and call stacks for the queries beyond what you get with SQL Server Profiler.
LINQ to SQL Visualizer(免费)- C# 示例的一部分VS2008.下载、编译、享受!
LINQ to SQL Visualizer (free) - part of the C# Samples for VS2008. Download, compile, enjoy!
LINQPad(免费,为 C# Intellisense 付费)——运行 C# 的轻量级工具/VB.NET代码,连接数据库,测试Linq to SQL,查看生成的SQL等
LINQPad (free, pay for C# Intellisense) - light-weight tool to run C#/VB.NET code, connect to DBs, test Linq to SQL, view the generated SQL etc.
这篇关于优化 LINQ to SQL 查询的工具和技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:优化 LINQ to SQL 查询的工具和技术
基础教程推荐
- C# 从 List<List<int>> 中删除重 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- WPF 模态进度窗口 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
