Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在研究 SQL Server 的查询存储,特别是整体资源消耗视图。它有一个“总持续时间”字段。我在服务器上放置了 60 分钟的工作负载,该字段报告了 25 小时的持续时间。这是被线程跟踪的吗?这就是它报道如此之高的原因吗?
我跟踪了刷新查询存储中的网格时发送的查询。它表示这样的总持续时间:
ROUND(CONVERT(float, SUM(rs.avg_duration*rs.count_executions))*0.001,2) 作为total_duration,
因此,我们可以说总持续时间是在查询存储中配置的时间范围内运行的所有查询的总持续时间(以毫秒为单位)。